bsp_time.h 382 B

12345678910111213141516171819
  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. uint32_t rtc_sleep(void);
  15. #endif