From e2bd38c54095fbd27ddb4f14430341531bf2d9ce Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Mon, 18 Mar 2024 16:19:59 +0100 Subject: [PATCH] fw: Remove unusued forever_redflash() Since we now use assert() and feed the CPU an unimplemented instruction we have no need for this. --- hw/application_fpga/fw/tk1/led.c | 12 ------------ hw/application_fpga/fw/tk1/led.h | 1 - 2 files changed, 13 deletions(-) diff --git a/hw/application_fpga/fw/tk1/led.c b/hw/application_fpga/fw/tk1/led.c index 5f2c5fb..023bafa 100644 --- a/hw/application_fpga/fw/tk1/led.c +++ b/hw/application_fpga/fw/tk1/led.c @@ -13,15 +13,3 @@ void set_led(uint32_t led_value) { *led = led_value; } - -void forever_redflash() -{ - int led_on = 0; - - for (;;) { - *led = led_on ? LED_RED : LED_BLACK; - for (volatile int i = 0; i < 800000; i++) { - } - led_on = !led_on; - } -} diff --git a/hw/application_fpga/fw/tk1/led.h b/hw/application_fpga/fw/tk1/led.h index 358690d..d2c162e 100644 --- a/hw/application_fpga/fw/tk1/led.h +++ b/hw/application_fpga/fw/tk1/led.h @@ -18,5 +18,4 @@ // clang-format on void set_led(uint32_t led_value); -void forever_redflash(); #endif