WIP deep sleep mode
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user