bsp_time.h 419 B

1234567891011121314151617181920
  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. extern volatile uint32_t time_10ms_flag;
  10. typedef void (*TIME_callback)(void*);
  11. void TIME_Init(void);
  12. uint32_t TIME_GetTicks(void);
  13. int TIME_Regist(TIME_callback cb);
  14. int TIME_UnRegist(TIME_callback cb);
  15. uint32_t rtc_sleep(void);
  16. #endif