13 volatile static uint32_t systick_wait_count;
14 volatile static uint32_t systick_time_count;
15 volatile static uint8_t systick_handler_state;
24 static void initSystemTickTimer()
31 systick_handler_state = 1;
42 initSystemTickTimer();
43 systick_wait_count = 0;
44 while(systick_wait_count < wait_count);
46 systick_handler_state = 0;
59 if(systick_handler_state == 0)initSystemTickTimer();
60 systick_wait_count = 0;
61 while(systick_wait_count < wait_count*1000);
63 systick_handler_state = 0;
78 if(systick_handler_state == 0)initSystemTickTimer();
79 systick_time_count = 0;
91 systick_handler_state = 0;
92 return systick_time_count;
101 systick_wait_count ++;
102 systick_time_count ++;
void wait1usec(uint32_t wait_count)
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
void SysTick_Handler(void)
void wait1msec(uint32_t wait_count)
void time_count_start(void)
uint32_t time_count_end(void)