This is a part of the Kinetiszer project.
Diff: systick.h
- Revision:
- 0:5a419ba2726d
diff -r 000000000000 -r 5a419ba2726d systick.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systick.h Tue Oct 28 12:19:22 2014 +0000 @@ -0,0 +1,16 @@ +#ifndef __SYSTICK_H__ +#define __SYSTICK_H__ + + +#define SYSTICK_RATE_HZ (1000) // Ticks per second. + +void SysTick_Handler(void); +void SysTick_Seconds(void); +void SysTick_Delay(uint32_t ticks); +void SysTick_LED_Flash(uint8_t led, uint32_t ticks); + +extern volatile uint32_t seconds_counter; +extern volatile uint32_t systick_counter; + + +#endif // __SYSTICK_H__