summaryrefslogtreecommitdiffstats
path: root/watch-library/hw
diff options
context:
space:
mode:
Diffstat (limited to 'watch-library/hw')
-rw-r--r--watch-library/hw/atmel_start_pins.h2
-rw-r--r--watch-library/hw/driver_init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/hw/atmel_start_pins.h b/watch-library/hw/atmel_start_pins.h
index 36fe6bf4..28dc9919 100644
--- a/watch-library/hw/atmel_start_pins.h
+++ b/watch-library/hw/atmel_start_pins.h
@@ -49,7 +49,7 @@
#define A2 GPIO(GPIO_PORTB, 2)
#define D0 GPIO(GPIO_PORTB, 3)
#define A0 GPIO(GPIO_PORTB, 4)
-#define BTN_ALARM GPIO(GPIO_PORTB, 5)
+#define BTN_ALARM GPIO(GPIO_PORTA, 2)
#define COM0 GPIO(GPIO_PORTB, 6)
#define COM1 GPIO(GPIO_PORTB, 7)
#define COM2 GPIO(GPIO_PORTB, 8)
diff --git a/watch-library/hw/driver_init.c b/watch-library/hw/driver_init.c
index 4f1f8eee..02907feb 100644
--- a/watch-library/hw/driver_init.c
+++ b/watch-library/hw/driver_init.c
@@ -50,7 +50,7 @@ void EXTERNAL_IRQ_0_init(void) {
// <GPIO_PULL_DOWN"> Pull-down
GPIO_PULL_DOWN);
- gpio_set_pin_function(BTN_ALARM, PINMUX_PB05A_EIC_EXTINT5);
+ gpio_set_pin_function(BTN_ALARM, PINMUX_PA02A_EIC_EXTINT2);
// Set pin direction to input
gpio_set_pin_direction(BTN_LIGHT, GPIO_DIRECTION_IN);