diff --git a/configs/cloudctrl/src/stm32_buttons.c b/configs/cloudctrl/src/stm32_buttons.c index a107605760a..43a090b05b2 100644 --- a/configs/cloudctrl/src/stm32_buttons.c +++ b/configs/cloudctrl/src/stm32_buttons.c @@ -61,7 +61,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USERKEY, GPIO_BTN_TAMPER, GPIO_BTN_WAKEUP }; diff --git a/configs/olimex-stm32-h405/src/stm32_buttons.c b/configs/olimex-stm32-h405/src/stm32_buttons.c index b9f3e174ab2..aefe40fc8c3 100644 --- a/configs/olimex-stm32-h405/src/stm32_buttons.c +++ b/configs/olimex-stm32-h405/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_BUT }; diff --git a/configs/olimex-stm32-h407/src/stm32_buttons.c b/configs/olimex-stm32-h407/src/stm32_buttons.c index 7bd3ff2f53a..24bcc1ee34c 100644 --- a/configs/olimex-stm32-h407/src/stm32_buttons.c +++ b/configs/olimex-stm32-h407/src/stm32_buttons.c @@ -57,7 +57,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_BUT }; diff --git a/configs/olimex-stm32-p207/src/stm32_buttons.c b/configs/olimex-stm32-p207/src/stm32_buttons.c index 943765b5e1e..5caaeab8351 100644 --- a/configs/olimex-stm32-p207/src/stm32_buttons.c +++ b/configs/olimex-stm32-p207/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_TAMPER, GPIO_BTN_WKUP, diff --git a/configs/shenzhou/src/stm32_buttons.c b/configs/shenzhou/src/stm32_buttons.c index e980d1e1101..cf31d666e82 100644 --- a/configs/shenzhou/src/stm32_buttons.c +++ b/configs/shenzhou/src/stm32_buttons.c @@ -60,7 +60,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USERKEY2, GPIO_BTN_USERKEY, GPIO_BTN_TAMPER, GPIO_BTN_WAKEUP }; diff --git a/configs/stm3210e-eval/src/stm32_buttons.c b/configs/stm3210e-eval/src/stm32_buttons.c index 8502fbb822a..df326855659 100644 --- a/configs/stm3210e-eval/src/stm32_buttons.c +++ b/configs/stm3210e-eval/src/stm32_buttons.c @@ -60,7 +60,7 @@ * the BUTTON_* and JOYSTICK_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_KEY, diff --git a/configs/stm3220g-eval/src/stm32_buttons.c b/configs/stm3220g-eval/src/stm32_buttons.c index 2630b069ce3..85db973fa55 100644 --- a/configs/stm3220g-eval/src/stm32_buttons.c +++ b/configs/stm3220g-eval/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* and JOYSTICK_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER }; diff --git a/configs/stm3240g-eval/src/stm32_buttons.c b/configs/stm3240g-eval/src/stm32_buttons.c index deca2e8e1d0..e3e761b217b 100644 --- a/configs/stm3240g-eval/src/stm32_buttons.c +++ b/configs/stm3240g-eval/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* and JOYSTICK_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_WAKEUP, GPIO_BTN_TAMPER, GPIO_BTN_USER }; diff --git a/configs/stm32f3discovery/src/stm32_buttons.c b/configs/stm32f3discovery/src/stm32_buttons.c index fa7ccb6fe07..db0d6418313 100644 --- a/configs/stm32f3discovery/src/stm32_buttons.c +++ b/configs/stm32f3discovery/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USER }; diff --git a/configs/stm32f429i-disco/src/stm32_buttons.c b/configs/stm32f429i-disco/src/stm32_buttons.c index f93be0f3f3f..6dbe3cba7a9 100644 --- a/configs/stm32f429i-disco/src/stm32_buttons.c +++ b/configs/stm32f429i-disco/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USER }; diff --git a/configs/stm32f4discovery/src/stm32_buttons.c b/configs/stm32f4discovery/src/stm32_buttons.c index 28ed94ae755..b068e03dad2 100644 --- a/configs/stm32f4discovery/src/stm32_buttons.c +++ b/configs/stm32f4discovery/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USER }; diff --git a/configs/stm32ldiscovery/src/stm32_buttons.c b/configs/stm32ldiscovery/src/stm32_buttons.c index 32a95ab6cb7..5427ac751b1 100644 --- a/configs/stm32ldiscovery/src/stm32_buttons.c +++ b/configs/stm32ldiscovery/src/stm32_buttons.c @@ -65,7 +65,7 @@ * the BUTTON_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_BTN_USER }; diff --git a/configs/viewtool-stm32f107/src/stm32_buttons.c b/configs/viewtool-stm32f107/src/stm32_buttons.c index 643ea0d820c..cff85be4c6e 100644 --- a/configs/viewtool-stm32f107/src/stm32_buttons.c +++ b/configs/viewtool-stm32f107/src/stm32_buttons.c @@ -60,7 +60,7 @@ * the BUTTON_* and JOYSTICK_* definitions in board.h */ -static const uint16_t g_buttons[NUM_BUTTONS] = +static const uint32_t g_buttons[NUM_BUTTONS] = { GPIO_SW2, GPIO_SW3, GPIO_SW4 };