summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch_extint.c
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-09-13 16:43:35 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-09-13 16:44:07 -0400
commit5a53916f0e51f02aab6d892c87310e5730abce5c (patch)
tree790945ca3e388417685dde5d2f100f3d3fdba83f /watch-library/watch/watch_extint.c
parent5cd6b1afc7cacbe3479fd57305ce71ac25e42759 (diff)
downloadSensor-Watch-5a53916f0e51f02aab6d892c87310e5730abce5c.tar.gz
Sensor-Watch-5a53916f0e51f02aab6d892c87310e5730abce5c.tar.bz2
Sensor-Watch-5a53916f0e51f02aab6d892c87310e5730abce5c.zip
first steps toward supporting alternate board pinouts
Diffstat (limited to 'watch-library/watch/watch_extint.c')
-rw-r--r--watch-library/watch/watch_extint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/watch/watch_extint.c b/watch-library/watch/watch_extint.c
index 421700bc..1199dd35 100644
--- a/watch-library/watch/watch_extint.c
+++ b/watch-library/watch/watch_extint.c
@@ -77,13 +77,13 @@ void watch_register_interrupt_callback(const uint8_t pin, ext_irq_cb_t callback,
break;
case BTN_LIGHT:
gpio_set_pin_pull_mode(pin, GPIO_PULL_DOWN);
- pinmux = PINMUX_PA22A_EIC_EXTINT6;
+ pinmux = WATCH_BTN_LIGHT_EIC_PINMUX;
config &= ~EIC_CONFIG_SENSE6_Msk;
config |= EIC_CONFIG_SENSE6(trigger);
break;
case BTN_MODE:
gpio_set_pin_pull_mode(pin, GPIO_PULL_DOWN);
- pinmux = PINMUX_PA23A_EIC_EXTINT7;
+ pinmux = WATCH_BTN_MODE_EIC_PINMUX;
config &= ~EIC_CONFIG_SENSE7_Msk;
config |= EIC_CONFIG_SENSE7(trigger);
break;