diff --git a/targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/lp_ticker.c b/targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/lp_ticker.c index ca26b99755..7e4e14d751 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/lp_ticker.c +++ b/targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/lp_ticker.c @@ -63,8 +63,8 @@ static cy_stc_mcwdt_config_t config = { // Interrupt configuration. static cy_stc_sysint_t lpt_sysint_config = { #if defined(TARGET_MCU_PSOC6_M0) - .intrSrc = (IRQn_Type)(-1), - .cm0pSrc = CY_M0_CORE_IRQ_CHANNEL_LP_TICKER, + .intrSrc = CY_M0_CORE_IRQ_CHANNEL_LP_TICKER, + .cm0pSrc = LPT_INTERRUPT_SOURCE, #else .intrSrc = LPT_INTERRUPT_SOURCE, #endif