Browse Source

expose ccmicros for testing

micros() unchanged - minor systick_isr() diversion - one line added to systick_isr.
teensy4-core
Defragster 5 years ago
parent
commit
8cb4de3469
No account linked to committer's email address
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      teensy4/delay.c

+ 5
- 5
teensy4/delay.c View File

@@ -62,7 +62,8 @@ void delay(uint32_t msec)
// TODO...
}

uint32_t micros(void)
extern uint32_t ccmicros(void);
uint32_t ccmicros(void)
{
uint32_t ccdelta, usec, smc, scc;
do {
@@ -74,9 +75,8 @@ uint32_t micros(void)
return usec;
}

#if 0 // kept to compare test to cycle count micro()
extern uint32_t otmicros(void);
uint32_t otmicros(void)
//#if 0 // kept to compare test to cycle count micro()
uint32_t micros(void)
{
uint32_t msec, tick, elapsed, istatus, usec;
//static uint32_t prev_msec=0;
@@ -133,4 +133,4 @@ uint32_t otmicros(void)
prev_usec = usec;
return usec;
}
#endif
//#endif

Loading…
Cancel
Save