samples: nrf52: power_mgr: use dts-generated defines

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>
This commit is contained in:
Emanuele Di Santo 2018-08-22 12:14:59 +02:00 committed by Kumar Gala
commit ea4f8b7d6c

View file

@ -18,7 +18,7 @@
#define GPIO_CFG_SENSE_LOW (GPIO_PIN_CNF_SENSE_Low << GPIO_PIN_CNF_SENSE_Pos) #define GPIO_CFG_SENSE_LOW (GPIO_PIN_CNF_SENSE_Low << GPIO_PIN_CNF_SENSE_Pos)
/* change this to use another GPIO port */ /* 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_1 SW0_GPIO_PIN
#define BUTTON_2 SW1_GPIO_PIN #define BUTTON_2 SW1_GPIO_PIN
#define LOW 0 #define LOW 0