button commented

This commit is contained in:
Jerry Palacios 2024-02-08 11:55:01 -06:00
parent b9c6b22165
commit fa4314e0ce
2 changed files with 9 additions and 9 deletions

View File

@ -38,10 +38,10 @@
#define LED_STATE_ON 0
// WAKE button (Dummy, use unused pin
#define BUTTON_GPIO GPIO1
#define BUTTON_CLK kCLOCK_GateGPIO1
#define BUTTON_PIN 7 //sw3
#define BUTTON_STATE_ACTIVE 0
// #define BUTTON_GPIO GPIO1
// #define BUTTON_CLK kCLOCK_GateGPIO1
// #define BUTTON_PIN 7 //sw3
// #define BUTTON_STATE_ACTIVE 0
// UART
#define UART_DEV LPUART0

View File

@ -80,11 +80,11 @@ void board_init(void)
board_led_write(1);
// Button
#ifdef BUTTON_GPIO
CLOCK_EnableClock(BUTTON_CLK);
gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0};
GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config);
#endif
//#ifdef BUTTON_GPIO
// CLOCK_EnableClock(BUTTON_CLK);
// gpio_pin_config_t const button_config = { kGPIO_DigitalInput, 0};
// GPIO_PinInit(BUTTON_GPIO, BUTTON_PIN, &button_config);
//#endif
#ifdef UART_DEV