GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_systick.h
Go to the documentation of this file.
1 #ifndef STM32F103CB_SYSTICK_H_
2 #define STM32F103CB_SYSTICK_H_
3 
36 #include "stm32f103cb_gpio.h"
37 #include "stm32f103cb_debug.h"
38 #include "stm32f103cb_clock.h"
39 #include <libopencm3/cm3/systick.h>
40 #include <libopencm3/cm3/nvic.h>
41 #include <stdint.h>
42 
47 #define SYSTICK 27
48 
57 mcu_error SYSTICK_setup(uint32_t timeout, void (*handler)(void));
65 mcu_error SYSTICK_timeout(uint32_t timeout);
73 void SYSTICK_handler(void (*handler)(void));
80 uint32_t SYSTICK_count(void);
87 void SYSTICK_stop(void);
95 void SYSTICK_start(void);
98 #endif
Header file for stm32f103cb DEBUG.
Header file for stm32f103 GPIO.
void SYSTICK_start(void)
Start the systick counter.
void SYSTICK_handler(void(*handler)(void))
Sets the handler called on interrupt event.
mcu_error SYSTICK_timeout(uint32_t timeout)
Change the systick timeout value.
void SYSTICK_stop(void)
Stop the systick counter.
uint32_t SYSTICK_count(void)
Get the current clock value.
Header file for stm32f103 CLOCK.
mcu_error SYSTICK_setup(uint32_t timeout, void(*handler)(void))
Sets up systick and handler.
mcu_error
Error enumerators for the Debug peripheral.