Skip to content

Commit

Permalink
boards/nrf9160dk: enable internal pullup on buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Laduranty <[email protected]>
  • Loading branch information
dylad committed Apr 8, 2024
1 parent d755957 commit cae9633
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions boards/nrf9160dk/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ extern "C" {
* @{
*/
#define BTN0_PIN GPIO_PIN(0, 6) /**< BTN0 pin definition */
#define BTN0_MODE GPIO_IN /**< BTN0 default mode */
#define BTN0_MODE GPIO_IN_PU /**< BTN0 default mode */
#define BTN1_PIN GPIO_PIN(0, 7) /**< BTN1 pin definition */
#define BTN1_MODE GPIO_IN /**< BTN1 default mode */
#define BTN1_MODE GPIO_IN_PU /**< BTN1 default mode */
#define BTN2_PIN GPIO_PIN(0, 8) /**< BTN2 pin definition */
#define BTN2_MODE GPIO_IN /**< BTN2 default mode */
#define BTN2_MODE GPIO_IN_PU /**< BTN2 default mode */
#define BTN3_PIN GPIO_PIN(0, 9) /**< BTN3 pin definition */
#define BTN3_MODE GPIO_IN /**< BTN3 default mode */
#define BTN3_MODE GPIO_IN_PU /**< BTN3 default mode */
/** @} */

/**
Expand All @@ -95,6 +95,11 @@ extern "C" {
#define WS281X_TIMER_MAX_VALUE TIMER_1_MAX_VALUE /**< Timer max value */
/** @} */

/**
* @brief Initialize board specific parameters for nrf_modem
*/
int nrf_modem_setup(void);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit cae9633

Please sign in to comment.