From afc41f5ca9b70bf6492818b1eb478c3c325c6404 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 2 Dec 2021 08:24:21 +0100 Subject: [PATCH] Remove most of main() to really only use irqs --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index ef3008b..491cd90 100644 --- a/main.c +++ b/main.c @@ -118,6 +118,8 @@ void tim6_isr (void) { int main (void) { setup(); + while (true) __asm ("wfi"); +#ifdef NOT_ACTUALLY_DEFINED // Array of what leds should be on uint16_t states[4] = {0, 0, GPIO8, GPIO8}; char state = 0; @@ -136,6 +138,7 @@ int main (void) { gpio_set(GPIOC, states[state]); gpio_clear(GPIOC, (GPIO8) ^ states[state]); } +#endif return 0; }