Remove most of main() to really only use irqs

timer_driven
LEdoian 3 years ago
parent b0a5df0fcf
commit afc41f5ca9

@ -118,6 +118,8 @@ void tim6_isr (void) {
int main (void) { int main (void) {
setup(); setup();
while (true) __asm ("wfi");
#ifdef NOT_ACTUALLY_DEFINED
// Array of what leds should be on // Array of what leds should be on
uint16_t states[4] = {0, 0, GPIO8, GPIO8}; uint16_t states[4] = {0, 0, GPIO8, GPIO8};
char state = 0; char state = 0;
@ -136,6 +138,7 @@ int main (void) {
gpio_set(GPIOC, states[state]); gpio_set(GPIOC, states[state]);
gpio_clear(GPIOC, (GPIO8) ^ states[state]); gpio_clear(GPIOC, (GPIO8) ^ states[state]);
} }
#endif
return 0; return 0;
} }

Loading…
Cancel
Save