diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-08-20 07:47:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 07:47:21 -0400 |
commit | 1797cfb5c5bc45291b71fbe7b23b3f1d1d57dd78 (patch) | |
tree | 751c863d2761712ed0d93997ddc5a2f5942143bd /app/boards/arm/nrfmicro/pinmux.c | |
parent | fb3dadba8721b4e63d1284b90c3380b7897b2f50 (diff) | |
parent | 4efce4223ae38306a254b11db628d782f1d7f382 (diff) |
Merge pull request #110 from megamind4089/bug/nrfmicro_charger_fix
nRFMicro: Charger issue. Use correct macro for board
Diffstat (limited to 'app/boards/arm/nrfmicro/pinmux.c')
-rw-r--r-- | app/boards/arm/nrfmicro/pinmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/boards/arm/nrfmicro/pinmux.c b/app/boards/arm/nrfmicro/pinmux.c index 803d20d..c02ca92 100644 --- a/app/boards/arm/nrfmicro/pinmux.c +++ b/app/boards/arm/nrfmicro/pinmux.c @@ -17,7 +17,7 @@ static int pinmux_nrfmicro_init(struct device *port) struct device *p1 = device_get_binding("GPIO_1"); -#if defined(BOARD_NRFMICRO_13) +#if CONFIG_BOARD_NRFMICRO_13 struct device *p0 = device_get_binding("GPIO_0"); // enable EXT_VCC (use 0 for nRFMicro 1.3, use 1 for nRFMicro 1.1) gpio_pin_configure(p1, 9, GPIO_OUTPUT); @@ -34,4 +34,4 @@ static int pinmux_nrfmicro_init(struct device *port) return 0; } -SYS_INIT(pinmux_nrfmicro_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY);
\ No newline at end of file +SYS_INIT(pinmux_nrfmicro_init, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY); |