bsp_time.h 377 B

123456789101112131415161718
  1. #ifndef __bsp_time_h__
  2. #define __bsp_time_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 (*TIME_callback)(void*);
  10. void TIME_Init(void);
  11. uint32_t TIME_GetTicks(void);
  12. int TIME_Regist(TIME_callback cb);
  13. int TIME_UnRegist(TIME_callback cb);
  14. uint32_t rtc_sleep(void);
  15. #endif