Skip to content

Commit

Permalink
samples: nrf52: power_mgr: use dts-generated defines
Browse files Browse the repository at this point in the history
This commit updates the power_mgr sample to use the dts-generated
defines instead of the aliases in board.h.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
  • Loading branch information
lemrey authored and galak committed Sep 11, 2018
1 parent 0a15793 commit ea4f8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/boards/nrf52/power_mgr/src/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define GPIO_CFG_SENSE_LOW (GPIO_PIN_CNF_SENSE_Low << GPIO_PIN_CNF_SENSE_Pos)

/* change this to use another GPIO port */
#define PORT SW0_GPIO_NAME
#define PORT SW0_GPIO_CONTROLLER
#define BUTTON_1 SW0_GPIO_PIN
#define BUTTON_2 SW1_GPIO_PIN
#define LOW 0

0 comments on commit ea4f8b7

Please sign in to comment.