Skip to content

Commit 03f2668

Browse files
committed
variants/: Adapt pins_arduino.h for XMC4700.
Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent f39bc19 commit 03f2668

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

variants/XMC4700/config/XMC4700_Relax_Kit/pins_arduino.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static const uint8_t SCK_SD = SDCARD_SCK_PIN;
146146
#define BUTTON1 24
147147
#define BUTTON2 25
148148

149-
#define digitalPinToInterrupt(p) ((p) == 2 ? 0 : ((p) == 3 ? 1 : NOT_AN_INTERRUPT))
149+
#define digitalPinToInterrupt(p) ((p) == 2 ? 0 : ((p) == 3 ? 1 : -1))
150150

151151
#ifdef ARDUINO_MAIN
152152
// Mapping of digital pins and comments
@@ -259,10 +259,10 @@ const uint8_t GND = (sizeof(mapping_port_pin) / sizeof(XMC_PORT_PIN_t));
259259
const uint8_t NUM_DIGITAL = (sizeof(mapping_port_pin) / sizeof(XMC_PORT_PIN_t));
260260
;
261261

262-
// const XMC_PIN_INTERRUPT_t mapping_interrupt[] = {
263-
// /* 0 */ {CCU40, CCU40_CC43, 3, 0, CCU40_IN3_P1_0},
264-
// /* 1 */ {CCU40, CCU40_CC42, 2, 1, CCU40_IN2_P1_1}};
265-
// const uint8_t NUM_INTERRUPT = (sizeof(mapping_interrupt) / sizeof(XMC_PIN_INTERRUPT_t));
262+
const XMC_PIN_INTERRUPT_t mapping_interrupt[] = {
263+
/* 0 */ {CCU40, CCU40_CC43, 3, 0, CCU40_IN3_P1_0},
264+
/* 1 */ {CCU40, CCU40_CC42, 2, 1, CCU40_IN2_P1_1}};
265+
const uint8_t NUM_INTERRUPT = (sizeof(mapping_interrupt) / sizeof(XMC_PIN_INTERRUPT_t));
266266

267267
// /* Mapping of Arduino Pins to PWM4 channels as pin and index in PWM4 channel
268268
// mapping array XMC_PWM4_t mapping_pwm4[]

0 commit comments

Comments
 (0)