fw: Move all variable declaration to first in scope

This commit is contained in:
Michael Cardell Widerkrantz 2023-03-09 16:08:51 +01:00 committed by Daniel Lublin
parent 9c766794db
commit ebf8a11ed0
No known key found for this signature in database
GPG key ID: 75BD0FEB8D3E7830
2 changed files with 16 additions and 10 deletions

View file

@ -10,8 +10,8 @@
void forever_redflash()
{
static volatile uint32_t *led = (volatile uint32_t *)TK1_MMIO_TK1_LED;
int led_on = 0;
for (;;) {
*led = led_on ? LED_RED : LED_BLACK;
for (volatile int i = 0; i < 800000; i++) {