stm32f1xx_HBL/drv/stk.h
2024-04-28 22:04:10 +02:00

32 lines
699 B
C

/** @file stk.h
* Module handling the system timer (systick or STK for short)
*
* The module provides functions to configure and use the system timer embedded
* in the cortex m core
*/
#ifndef _STK_H_
#define _STK_H_
//--includes--------------------------------------------------------------------
#include <stdint.h>
//--type definitions------------------------------------------------------------
typedef void (*StkCallback)(void);
//--functions-------------------------------------------------------------------
uint32_t stk_configure(uint32_t period_us, StkCallback cb);
void stk_reset(void);
void stk_start(void);
void stk_stop(void);
uint32_t stk_read(void);
#endif //_STK_H_