Skip to content

Commit

Permalink
fw: Remove unusued forever_redflash()
Browse files Browse the repository at this point in the history
Since we now use assert() and feed the CPU an unimplemented
instruction we have no need for this.
  • Loading branch information
mchack-work committed Mar 18, 2024
1 parent 9d36acd commit e2bd38c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions hw/application_fpga/fw/tk1/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
1 change: 0 additions & 1 deletion hw/application_fpga/fw/tk1/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
// clang-format on

void set_led(uint32_t led_value);
void forever_redflash();
#endif

0 comments on commit e2bd38c

Please sign in to comment.