Content originally posted in LPCWare by deBoogle on Mon Feb 21 14:44:27 MST 2011
Hi guys,
Just a quick question. I was looking through all the header files for systick functions and found the following in the systick header:
/* Exported functions ------------------------------------------------------- */
void SysTick_Handler(void);
void delaySysTick(DWORD tick);
void SysTick_CLKSourceConfig(DWORD SysTick_CLKSource);
void SysTick_SetReload(DWORD Reload);
void SysTick_CounterCmd(DWORD SysTick_Counter);
void SysTick_ITConfig(FunctionalState NewState);
DWORD SysTick_GetCounter(void);
FlagStatus SysTick_GetFlagStatus(BYTE SysTick_FLAG);
What are these functions for?
I tried using the flagstatus function and it didn't work!
I have found a way around this using the examples provided, and also written some code to detect flag status like the following:
#define count_flag (1<<16)
flag_status = SysTick-> & count_flag;
Just wondred what those functions in the header were for?
Also, (I know big post syndrome!),
Where can I find the defs / declrations for this function which is in the example, I can't see it!
__INLINE static void systick_delay (uint32_t delayTicks)
Why __INLINE??
thanks
deBoogle