Defined clock Frequency and multiplication factor
This commit is contained in:
parent
322eb69756
commit
0dc4b7361e
2
main.c
2
main.c
|
@ -5,3 +5,5 @@
|
|||
#define STCTRL *((volatile uint32_t *) 0xE000E010) // CONTROL AND STATUS
|
||||
#define STRELOAD *((volatile uint32_t *) 0xE000E014) // RELOAD VALUE
|
||||
#define STCURRENT *((volatile uint32_t *) 0xE000E018) // CURRENT VALUE
|
||||
#define CLOCK_HZ 16000000 // CLOCK FREQUENCY OF EK-TM4C123GXL
|
||||
#define SYSTICK_RELOAD_VALUE(us) ((CLOCK_HZ / 1000000) * (us) - 1) // SYSTICK RELOAD VALUE
|
Loading…
Reference in New Issue