diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-08-03 18:00:07 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-08-03 18:09:58 -0400 |
commit | fc31739eb6fdf230a26930e8d42de7a26558aeae (patch) | |
tree | dcd629420799cba11304d0d4184f15c5f12f3e6e /watch-library/hw | |
parent | 8a06636833e007675c150532035588bc1bf7749a (diff) | |
download | Sensor-Watch-fc31739eb6fdf230a26930e8d42de7a26558aeae.tar.gz Sensor-Watch-fc31739eb6fdf230a26930e8d42de7a26558aeae.tar.bz2 Sensor-Watch-fc31739eb6fdf230a26930e8d42de7a26558aeae.zip |
WIP deep sleep mode
Diffstat (limited to 'watch-library/hw')
-rw-r--r-- | watch-library/hw/atmel_start_pins.h | 2 | ||||
-rw-r--r-- | watch-library/hw/driver_init.c | 2 |
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); |