Code: Select all
static const mfEXTConfig extcfg =
{
{
{EXT_CH_MODE_DISABLED, NULL}, //0
{EXT_CH_MODE_DISABLED, NULL}, //1
{EXT_CH_MODE_DISABLED, NULL}, //2
{EXT_CH_MODE_BOTH_EDGES | EXT_CH_MODE_AUTOSTART | EXT_MODE_GPIOA, uart_cb}, //3 UART2 Rx
{EXT_CH_MODE_DISABLED, NULL}, //4
...
}
};Although it works for RTC this dose not work for external RX line.
Also I had a question -> after going to sleep (STOP MODE)
Code: Select all
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
PWR->CR |= (PWR_CR_PDDS | PWR_CR_LPSDSR);
__WFI();Should I return to code line after __WFI() function? I never reach this point