|
GlobLib
HAL and API libraries for MCUs and hardware.
|
This module contains low level functions for systick usage. More...
Files | |
| file | stm32f103cb_systick.h |
| Header file for stm32f103cb SYSTICK. | |
Macros | |
| #define | SYSTICK 27 |
| This is a dummy define so that USB_coms() can use systick as a timer option. | |
Functions | |
| mcu_error | SYSTICK_setup (uint32_t timeout, void(*handler)(void)) |
| Sets up systick and handler. More... | |
| mcu_error | SYSTICK_timeout (uint32_t timeout) |
| Change the systick timeout value. More... | |
| void | SYSTICK_handler (void(*handler)(void)) |
| Sets the handler called on interrupt event. More... | |
| uint32_t | SYSTICK_count (void) |
| Get the current clock value. More... | |
| void | SYSTICK_stop (void) |
| Stop the systick counter. More... | |
| void | SYSTICK_start (void) |
| Start the systick counter. More... | |
This module contains low level functions for systick usage.
| uint32_t SYSTICK_count | ( | void | ) |
Get the current clock value.
Definition at line 91 of file stm32f103cb_systick.c.
| void SYSTICK_handler | ( | void(*)(void) | handler | ) |
Sets the handler called on interrupt event.
| handler | The function to be called on interrupt event |
Definition at line 78 of file stm32f103cb_systick.c.
| mcu_error SYSTICK_setup | ( | uint32_t | timeout, |
| void(*)(void) | handler | ||
| ) |
Sets up systick and handler.
This function checks if the timeout value specified is possible, defaults to ..... if not.
| timeout | The desired timeout in microseconds |
| handler | The function to be called on interrupt event |
Definition at line 23 of file stm32f103cb_systick.c.
| void SYSTICK_start | ( | void | ) |
Start the systick counter.
Systick counter must have been set up with SYSTICK_setup() before this is used.
Definition at line 102 of file stm32f103cb_systick.c.
| void SYSTICK_stop | ( | void | ) |
Stop the systick counter.
Definition at line 108 of file stm32f103cb_systick.c.
| mcu_error SYSTICK_timeout | ( | uint32_t | timeout | ) |
Change the systick timeout value.
This function checks if the timeout value specified is possible, defaults to ..... if not.
| timeout | The desired timeout in microseconds |
Definition at line 33 of file stm32f103cb_systick.c.