/************************************************************************************************** * @fn SysCtrlSleepSetting * * @brief Setup which peripherals are enabled/disabled in Sleep * * input parameters * * @param None. * * output parameters * * None. * * @return None. **************************************************************************************************/ void SysCtrlSleepSetting(void) { /* Disable General Purpose Timers 0, 1, 2, 3 during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT0); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT1); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT2); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT3); /* Disable SSI 0, 1 during sleep */ SysCtrlPeripheralSleepEnable(SYS_CTRL_PERIPH_SSI0); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_SSI1); /* Disable UART 0, 1 during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_UART0); SysCtrlPeripheralSleepEnable(SYS_CTRL_PERIPH_UART1); /* Disable I2C, PKA, AES during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_I2C); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_PKA); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_AES); /* * Disable RFC during sleep. Please note that this setting is * only valid for PG2.0. For PG1.0 this is just a dummy instruction. */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_RFC); }
static void SysCtrlSleepSetting(void) { /* Disable General Purpose Timers 0, 1, 2, 3 during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT0); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT1); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT2); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_GPT3); /* Disable SSI 0, 1 during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_SSI0); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_SSI1); /* Disable UART 0, 1 during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_UART1); /* Disable I2C, PKA, AES during sleep */ SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_I2C); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_PKA); SysCtrlPeripheralSleepDisable(SYS_CTRL_PERIPH_AES); /* Enable UART and RFC during sleep */ SysCtrlPeripheralSleepEnable(SYS_CTRL_PERIPH_UART0); SysCtrlPeripheralSleepEnable(SYS_CTRL_PERIPH_RFC); }