我看到有HBN_Set_RTC_Timer这个函数,请问有怎么使用的方法么?
参考一下HBN_Mode_Enter中的sleepTime
typedef struct { uint8_t useXtal32k; /*!< Whether use xtal 32K as 32K clock source,otherwise use rc32k */ uint32_t sleepTime; /*!< HBN sleep time */ uint8_t gpioWakeupSrc; /*!< GPIO Wakeup source */ HBN_GPIO_INT_Trigger_Type gpioTrigType; /*!< GPIO Triger type */ SPI_Flash_Cfg_Type *flashCfg; /*!< Flash config pointer, used when power down flash */ HBN_LEVEL_Type hbnLevel; /*!< HBN level */ HBN_LDO_LEVEL_Type ldoLevel; /*!< LDO level */ }HBN_APP_CFG_Type;
5s 之后会wakeup 参考如下 C extern int hal_hbn_init(uint8_t *pinbuf, uint8_t pinbuf_size); extern int hal_hbn_enter(uint32_t time);
C
void hal_poweroff() { /TODO empty now/ unsigned char pin = 7;
hal_hbn_init(&pin, 1); hal_hbn_enter(5000); }
感谢,可以休眠了。