added board_buttons for lpcxpresso/board_lpcxpresso1769.c

This commit is contained in:
hathach
2014-03-07 12:45:49 +07:00
parent 26b1b879dd
commit 3d17212f29
5 changed files with 118 additions and 51 deletions
@@ -45,14 +45,14 @@
#define LED_ON (0)
#define LED_OFF (1)
enum {
BOARD_BUTTON_COUNT = 1
};
const static struct {
uint8_t port;
uint8_t pin;
} buttons[BOARD_BUTTON_COUNT] = { 0, 1 };
} buttons[BOARD_BUTTON_COUNT] = { { 0, 1 } };
enum {
BOARD_BUTTON_COUNT = sizeof(buttons) / sizeof(buttons[0])
};
void board_init(void)
{