static void APPE_SysUserEvtRx( void * pPayload ) { UNUSED(pPayload); /* Traces channel initialization */ APPD_EnableCPU2( ); APP_BLE_Init( ); /* We activate the semaphore 7 flash protection to be used by CPU2 */ if( SHCI_C2_SetFlashActivityControl(FLASH_ACTIVITY_CONTROL_SEM7) != SHCI_Success ) { Error_Handler(); } /* EEPROM emulation driver init */ EEPROM_Emul_Init(); /* Registering of the task running EEPROM operations in the sequencer */ UTIL_SEQ_RegTask( 1<< CFG_TASK_EEPROM_ID, UTIL_SEQ_RFU, EEPROM_Emul_Operation ); /* Creation and configuration of the timer lauching the EEPROM_Emul_Operation periodically */ uint8_t pTimerEeprom; HW_TS_Create(CFG_TIM_PROC_ID_ISR, &pTimerEeprom, hw_ts_Repeated, EEPROM_Emul_Ope_Launcher); HW_TS_Stop(pTimerEeprom); HW_TS_Start(pTimerEeprom, 128); UTIL_LPM_SetOffMode(1U << CFG_LPM_APP, UTIL_LPM_ENABLE); return; }