mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-14 01:15:52 -04:00
fw: Move all variable declaration to first in scope
This commit is contained in:
parent
9c766794db
commit
ebf8a11ed0
2 changed files with 16 additions and 10 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue