Skip to content

Commit

Permalink
Renamed board init function.
Browse files Browse the repository at this point in the history
  • Loading branch information
PontusO committed Jun 27, 2022
1 parent 4e839b1 commit dc41079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/boards/boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool button_pressed(uint32_t pin)
}

// This is declared so that a board specific init can be called from here.
void __attribute__((weak)) extern_board_init(void) { }
void __attribute__((weak)) board_init_extra(void) { }
void board_init(void)
{
// stop LF clock just in case we jump from application without reset
Expand Down
2 changes: 1 addition & 1 deletion src/boards/challenger_840_ble/pinconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const uint32_t bootloaderConfig[] =
/* CF2 END */
};

void extern_board_init(void)
void board_init_extra(void)
{
// Turn LDO on
nrf_gpio_cfg_output(LDO_CONTROL_PIN);
Expand Down

0 comments on commit dc41079

Please sign in to comment.