mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
button commented
This commit is contained in:
parent
b9c6b22165
commit
fa4314e0ce
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user