File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
ports/nrf/boards/challenger_840 Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 25
25
*/
26
26
27
27
#include "supervisor/board.h"
28
+ #include "nrf_gpio.h"
29
+
30
+ #define PORTPIN (x , y ) (x * 32 + y)
28
31
29
32
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
33
+ void board_init (void ) {
34
+ nrf_gpio_cfg_output (PORTPIN (1 , 9 ));
35
+ nrf_gpio_pin_write (PORTPIN (1 , 9 ), 1 );
36
+ }
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
32
32
{ MP_ROM_QSTR (MP_QSTR_D13 ), MP_ROM_PTR (& pin_P0_06 ) },
33
33
34
34
{ MP_ROM_QSTR (MP_QSTR_NEOPIXEL ), MP_ROM_PTR (& pin_P1_08 ) },
35
+ { MP_ROM_QSTR (MP_QSTR_LDO_CONTROL ), MP_ROM_PTR (& pin_P1_09 ) },
35
36
36
37
{ MP_ROM_QSTR (MP_QSTR_SCL ), MP_ROM_PTR (& pin_P0_12 ) },
37
38
{ MP_ROM_QSTR (MP_QSTR_SDA ), MP_ROM_PTR (& pin_P0_11 ) },
You can’t perform that action at this time.
0 commit comments