Other Parts Discussed in Thread: CC2541
Hello.
In the BLE sdk for cc2541 you can execute user code right after a wake up. In hal_sleep.c you have:
// Flag to indicate if wake is due to impending radio event.
static uint8 wakeForRF;
if ( (wakeForRF == TRUE) && !(IRCON & 0x80) )
{
wakeForRF = FALSE;
}
Right after this you know if the wakeup is for a radio event (advertising or connection event?) and you can execute a limited amount of code:
if ( (wakeForRF == TRUE)
{
// do stuff...
}
We are looking for this in the recent ble5 sdk but can not find sth. similar. Where do we have to look?
Best Regards