From 5a53916f0e51f02aab6d892c87310e5730abce5c Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Mon, 13 Sep 2021 16:43:35 -0400 Subject: first steps toward supporting alternate board pinouts --- watch-library/watch/watch_extint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'watch-library/watch/watch_extint.c') 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; -- cgit v1.2.3