Skip to content

Commit

Permalink
Remove board_millis() and extra LED bringup code
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Hurst committed Nov 27, 2024
1 parent 491b7bd commit 2a2ebb9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions ports/analog/boards/apard32690/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ void SysTick_Handler(void) {
system_ticks++;
}

uint32_t board_millis(void) {
return system_ticks;
}

// Initializes board related state once on start up.
void board_init(void) {
}
Expand Down
4 changes: 0 additions & 4 deletions ports/analog/boards/max32690evkit/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ void SysTick_Handler(void) {
system_ticks++;
}

uint32_t board_millis(void) {
return system_ticks;
}

// Initializes board related state once on start up.
void board_init(void) {
}
Expand Down
14 changes: 0 additions & 14 deletions ports/analog/supervisor/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,6 @@ safe_mode_t port_init(void) {
}
}

// Init Board LEDs
/* setup GPIO for the LED */
for (int i = 0; i < num_leds; i++) {
// Set the output value
MXC_GPIO_OutClr(led_pin[i].port, led_pin[i].mask);

if (MXC_GPIO_Config(&led_pin[i]) != E_NO_ERROR) {
return SAFE_MODE_PROGRAMMATIC;
}
}

// Turn on one LED to indicate Sign of Life
MXC_GPIO_OutSet(led_pin[2].port, led_pin[2].mask);

// Enable clock to RTC peripheral
MXC_GCR->clkctrl |= MXC_F_GCR_CLKCTRL_ERTCO_EN;
while (!(MXC_GCR->clkctrl & MXC_F_GCR_CLKCTRL_ERTCO_RDY)) {
Expand Down

0 comments on commit 2a2ebb9

Please sign in to comment.