aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/AVR
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2017-07-31 18:55:55 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2017-07-31 18:55:55 +0000
commit78e93f99de4a504b7b8cfc528b641470aa147e9e (patch)
tree38fc8b33f0d33e1823b0f34e8cb52771154efb49 /testhal/AVR
parent0e4213f267a2cdffd3488fc12f6f2e7305cd4c8a (diff)
downloadChibiOS-78e93f99de4a504b7b8cfc528b641470aa147e9e.tar.gz
ChibiOS-78e93f99de4a504b7b8cfc528b641470aa147e9e.tar.bz2
ChibiOS-78e93f99de4a504b7b8cfc528b641470aa147e9e.zip
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
Diffstat (limited to 'testhal/AVR')
-rw-r--r--testhal/AVR/EXT/main.c7
1 files changed, 6 insertions, 1 deletions
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.