AnsweredAssumed Answered

K82: wakeup due I2C1 slave

Question asked by Eugene Hiihtaja on Dec 13, 2018
Latest reply on Dec 18, 2018 by Kerry Zhou

Hello !

 

I'm using slave I2C1 interface and it should wakeup whole system from LLS3 low power mode.

I have specified  .enableWakeUp = true, in configuration of I2C1  slave interface.

 

But should I reconfigure SDA pin as LLWU input and when wakeup is happens, reconfigure it back as I2C like ?

 

Before :

 

// PTC11, I2C_SDA, falling edge, Host message ?

PM_SetWakeupConfig(kAPP_PowerModeLls, kAPP_WakeupSourcePin, LLWU_WAKEUP_P11_IDX, kLLWU_ExternalPinFallingEdge); 

 

After asap after wakeup ?

/* PORTC11 recover as I2C_SDA */
PORT_SetPinMux(BOARD_INITPINS_K81_I2C_SDA_PORT, BOARD_INITPINS_K81_I2C_SDA_PIN, kPORT_MuxAlt2); // ?

 

Or it is fully transparent if wakeup is set in I2C1 configuration ?

 

Regards,

Eugene

Outcomes