Skip to content

Commit f0e0e9f

Browse files
committed
FUTURE_SEQUANA: Fixed LP ticker for M0 core
Fixed interrupt vector settings on M0 core. Wrong vector settings prevented LP_TICKER from working, resulting in deep sleep tests failing on M0 or PSA variant.
2 parents 0403883 + 73f486d commit f0e0e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/lp_ticker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static cy_stc_mcwdt_config_t config = {
6363
// Interrupt configuration.
6464
static cy_stc_sysint_t lpt_sysint_config = {
6565
#if defined(TARGET_MCU_PSOC6_M0)
66-
.intrSrc = (IRQn_Type)(-1),
67-
.cm0pSrc = CY_M0_CORE_IRQ_CHANNEL_LP_TICKER,
66+
.intrSrc = CY_M0_CORE_IRQ_CHANNEL_LP_TICKER,
67+
.cm0pSrc = LPT_INTERRUPT_SOURCE,
6868
#else
6969
.intrSrc = LPT_INTERRUPT_SOURCE,
7070
#endif

0 commit comments

Comments
 (0)