Skip to content

Commit 407add6

Browse files
committed
cores/xmc: Change to channel1.
Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent 05d73f7 commit 407add6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cores/xmc/WInterrupts.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ void attachInterrupt(pin_size_t interrupt_num, voidFuncPtr callback, PinStatus m
127127
if (pin_irq.irq_num == 0) {
128128
#if defined(KIT_XMC11_BOOT_001) || defined(KIT_XMC1400_ARDUINO) || defined(KIT_XMC14_2GO)
129129
/* P1_4 external interrupt goes through USIC to CCU4 */
130-
XMC_USIC_CH_Enable(XMC_USIC0_CH0);
131-
XMC_USIC_CH_SetInputSource(XMC_USIC0_CH0, XMC_USIC_CH_INPUT_DX5, USIC0_C0_DX5_P1_4);
132-
XMC_USIC_CH_SetInputSource(XMC_USIC0_CH0, XMC_USIC_CH_INPUT_DX2, USIC0_C0_DX2_DX5INS);
130+
XMC_USIC_CH_Enable(XMC_USIC0_CH1);
131+
XMC_USIC_CH_SetInputSource(XMC_USIC0_CH1, XMC_USIC_CH_INPUT_DX5, USIC0_C0_DX5_P1_4);
132+
XMC_USIC_CH_SetInputSource(XMC_USIC0_CH1, XMC_USIC_CH_INPUT_DX2, USIC0_C0_DX2_DX5INS);
133133
#endif
134134
XMC_CCU4_SLICE_EnableMultipleEvents(pin_irq.slice, XMC_CCU4_SLICE_MULTI_IRQ_ID_EVENT0);
135135
XMC_CCU4_SLICE_SetInterruptNode(pin_irq.slice, XMC_CCU4_SLICE_IRQ_ID_EVENT0, 0);

0 commit comments

Comments
 (0)