tick.h 343 B

1234567891011121314151617
  1. #ifndef __tick_h__
  2. #define __tick_h__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. typedef void (*Tick_callback)(void*);
  10. void Tick_Init(void);
  11. uint32_t Tick_GetTicks(void);
  12. int Tick_Regist(Tick_callback cb);
  13. int Tick_UnRegist(Tick_callback cb);
  14. #endif