File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
boards/nordic/nrf52840dongle Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 3
3
# Copyright (c) 2018-2023 Nordic Semiconductor ASA
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- if BOARD_NRF52840DONGLE
6
+ config BOARD_NRF52840DONGLE
7
+ select BOARD_EARLY_INIT_HOOK
7
8
8
9
config BOARD_HAS_NRF5_BOOTLOADER
9
10
bool "Board has nRF5 bootloader"
10
11
default y
11
12
help
12
13
If selected, applications are linked so that they can be loaded by Nordic
13
14
nRF5 bootloader.
14
-
15
- endif # BOARD_NRF52840DONGLE
Original file line number Diff line number Diff line change 7
7
#include <zephyr/init.h>
8
8
#include <hal/nrf_power.h>
9
9
10
- static int board_nrf52840dongle_nrf52840_init (void )
10
+ void board_early_init_hook (void )
11
11
{
12
-
13
- /* if the nrf52840dongle_nrf52840 board is powered from USB
12
+ /* If the nrf52840dongle/nrf52840 board target is powered from USB
14
13
* (high voltage mode), GPIO output voltage is set to 1.8 volts by
15
14
* default and that is not enough to turn the green and blue LEDs on.
16
15
* Increase GPIO voltage to 3.0 volts.
@@ -37,9 +36,4 @@ static int board_nrf52840dongle_nrf52840_init(void)
37
36
/* a reset is required for changes to take effect */
38
37
NVIC_SystemReset ();
39
38
}
40
-
41
- return 0 ;
42
39
}
43
-
44
- SYS_INIT (board_nrf52840dongle_nrf52840_init , PRE_KERNEL_1 ,
45
- CONFIG_KERNEL_INIT_PRIORITY_DEFAULT );
You can’t perform that action at this time.
0 commit comments