cc2541, ble 1.3.2.
static void Set_Sleep(PACK_P ppack)
{
uint8 turnOffAdv = FALSE;
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &turnOffAdv );
GAPRole_TerminateConnection();
//ensure no other task, cpu goes into sleep automatic
//clear and stop all events
osal_start_timerEx( simpleBLEPeripheral_TaskID, SBP_LONG_PERIODIC_EVT, 10000);
}
if ( events & SBP_LONG_PERIODIC_EVT )
{
return ( events ^ SBP_LONG_PERIODIC_EVT );
}
after Set_Sleep, I see current goes to 1uA, after 10second, current goes up back at 8mA, not sleep anymore. (project POWER_SAVING enabled)
why?