From 9c9135640db4a71528765cd04ee0fb0fb7cd7938 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 21 Jul 2020 20:56:34 -0600 Subject: started refactoring anduril into individual files... ... messy and very incomplete, but it's a start, and at least it still compiles. (the overall structure is ... weird. mostly because of compiling the entire program plus libraries in a single step, as a single file, to make -fwhole-program work) --- spaghetti-monster/fsm-misc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'spaghetti-monster/fsm-misc.c') diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c index 82be745..eaa6fb3 100644 --- a/spaghetti-monster/fsm-misc.c +++ b/spaghetti-monster/fsm-misc.c @@ -222,6 +222,7 @@ void rgb_led_set(uint8_t value) { #endif // ifdef USE_AUX_RGB_LEDS #ifdef USE_TRIANGLE_WAVE +// TODO: remove this, it's in the wrong file uint8_t triangle_wave(uint8_t phase) { uint8_t result = phase << 1; if (phase > 127) result = 255 - result; -- cgit v1.2.3