From 2a2ebb9daadc16460146f4d4faa53879bcba8c30 Mon Sep 17 00:00:00 2001
From: Brandon Hurst <brandon.hurst@analog.com>
Date: Wed, 27 Nov 2024 08:47:05 -0800
Subject: [PATCH] Remove board_millis() and extra LED bringup code

---
 ports/analog/boards/apard32690/board.c    |  4 ----
 ports/analog/boards/max32690evkit/board.c |  4 ----
 ports/analog/supervisor/port.c            | 14 --------------
 3 files changed, 22 deletions(-)

diff --git a/ports/analog/boards/apard32690/board.c b/ports/analog/boards/apard32690/board.c
index cfef4bfcf61a..44c5a47faa6e 100644
--- a/ports/analog/boards/apard32690/board.c
+++ b/ports/analog/boards/apard32690/board.c
@@ -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) {
 }
diff --git a/ports/analog/boards/max32690evkit/board.c b/ports/analog/boards/max32690evkit/board.c
index ebb8b2da35fc..57d5cf74e7be 100644
--- a/ports/analog/boards/max32690evkit/board.c
+++ b/ports/analog/boards/max32690evkit/board.c
@@ -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) {
 }
diff --git a/ports/analog/supervisor/port.c b/ports/analog/supervisor/port.c
index 0aedd74f179c..da668d1f31a7 100644
--- a/ports/analog/supervisor/port.c
+++ b/ports/analog/supervisor/port.c
@@ -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)) {