InES Hardware Abstraction Layer
hal_systick.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * -- _____ ______ _____ -
3  * -- |_ _| | ____|/ ____| -
4  * -- | | _ __ | |__ | (___ Institute of Embedded Systems -
5  * -- | | | '_ \| __| \___ \ Zurich University of -
6  * -- _| |_| | | | |____ ____) | Applied Sciences -
7  * -- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland -
8  * ------------------------------------------------------------------------- */
16 /* Re-definition guard */
17 #ifndef _HAL_SYSTICK_H
18 #define _HAL_SYSTICK_H
19 
20 
21 /* Standard includes */
22 #include <stdint.h>
23 
24 
25 /* -- Type definitions
26  * ------------------------------------------------------------------------- */
27 
32 typedef enum {
33  HAL_RCC_CLK_HCLK8 = 0x0,
36 
37 
38 /* -- Public function declarations
39  * ------------------------------------------------------------------------- */
40 
44 void hal_systick_reset(void);
45 
51 void hal_systick_init(hal_systick_clk_t clock, uint32_t reload);
52 
56 void hal_systick_pause(void);
57 
61 void hal_systick_resume(void);
62 
63 
64 #endif
void hal_systick_init(hal_systick_clk_t clock, uint32_t reload)
Initializes the SysTick timer.
void hal_systick_resume(void)
Resumes the SysTick timer.
Definition: hal_systick.h:34
void hal_systick_reset(void)
Resets all involved registers.
hal_systick_clk_t
Available clocks for the systick timer.
Definition: hal_systick.h:32
void hal_systick_pause(void)
Pauses the SysTick timer.