From 78e93f99de4a504b7b8cfc528b641470aa147e9e Mon Sep 17 00:00:00 2001 From: Theodore Ateba Date: Mon, 31 Jul 2017 18:55:55 +0000 Subject: Remove the PCINT support from EXT driver because of a lot of conflicts. The PCINT will be reimplement. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10346 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/AVR/EXT/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testhal/AVR') diff --git a/testhal/AVR/EXT/main.c b/testhal/AVR/EXT/main.c index 263f52902..6aed40867 100644 --- a/testhal/AVR/EXT/main.c +++ b/testhal/AVR/EXT/main.c @@ -44,7 +44,12 @@ static void extcb(EXTDriver *extp, expchannel_t channel) { */ static const EXTConfig extcfg = { { + {EXT_CH_MODE_DISABLED , NULL}, /* INT0 Config. */ + {EXT_CH_MODE_DISABLED , NULL}, /* INT1 Config. */ + {EXT_CH_MODE_DISABLED , NULL}, /* INT2 Config. */ + {EXT_CH_MODE_DISABLED , NULL}, /* INT3 Config. */ {EXT_CH_MODE_RISING_EDGE , extcb}, /* INT4 Config. */ + {EXT_CH_MODE_DISABLED , NULL}, /* INT5 Config. */ } }; @@ -65,7 +70,7 @@ int main(void) { /* * External interrupt on the Pin D2 of the Arduino Mega2560. */ - palSetPadMode(IOPORT5, PE4, PAL_MODE_INPUT); + palSetPadMode(IOPORT5, PE4, PAL_MODE_INPUT); /* INT4 pin. */ /* * Start the serial driver. -- cgit v1.2.3