Compare commits
2 Commits
580c9f4e68
...
6b24947f04
Author | SHA1 | Date | |
---|---|---|---|
6b24947f04 | |||
8745170092 |
@ -96,3 +96,27 @@ bool is_ble_modem_on(void)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ble_modem_allow_sleep(bool allowSleep)
|
||||
{
|
||||
tls_bt_status_t ret = tls_bt_ctrl_sleep(allowSleep);
|
||||
|
||||
if(TLS_BT_STATUS_SUCCESS != ret)
|
||||
{
|
||||
TLS_BT_APPL_TRACE_ERROR("%s, tls_bt_ctrl_sleep ret:%d"NEW_LINE, __FUNCTION__, ret);
|
||||
}
|
||||
|
||||
return TLS_BT_STATUS_SUCCESS == ret;
|
||||
}
|
||||
|
||||
bool ble_modem_wakeup(void)
|
||||
{
|
||||
tls_bt_status_t ret = tls_bt_ctrl_wakeup();
|
||||
|
||||
if(TLS_BT_STATUS_SUCCESS != ret)
|
||||
{
|
||||
TLS_BT_APPL_TRACE_ERROR("%s, tls_bt_ctrl_wakeup ret:%d"NEW_LINE, __FUNCTION__, ret);
|
||||
}
|
||||
|
||||
return TLS_BT_STATUS_SUCCESS == ret;
|
||||
}
|
||||
|
@ -29,4 +29,8 @@ bool ble_modem_off(void);
|
||||
*/
|
||||
bool is_ble_modem_on(void);
|
||||
|
||||
bool ble_modem_allow_sleep(bool allowSleep);
|
||||
|
||||
bool ble_modem_wakeup(void);
|
||||
|
||||
#endif //BLE_MODEM_H
|
||||
|
@ -146,6 +146,16 @@ void tls_pmu_sdio_isr_register(tls_pmu_irq_callback callback, void *arg);
|
||||
*/
|
||||
void tls_pmu_clk_select(u8 bypass);
|
||||
|
||||
/**
|
||||
* @brief Starts the internal 32K oscillator calibration cycle.
|
||||
*
|
||||
* @param None
|
||||
*
|
||||
* @return None
|
||||
*
|
||||
*/
|
||||
void tls_pmu_clk_calibrate(void);
|
||||
|
||||
|
||||
/**
|
||||
* @brief This function is used to start pmu timer0
|
||||
|
Loading…
Reference in New Issue
Block a user