aboutsummaryrefslogtreecommitdiff
path: root/fsm/spaghetti-monster.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-10 21:34:40 -0700
committerSelene ToyKeeper2023-11-10 21:34:40 -0700
commit3d12b7066d27b591e0283e20ed066bc66e29fbe4 (patch)
tree08a0ed41a4b0baa7f7f5ea4eed6ee10ac250250c /fsm/spaghetti-monster.h
parentadded md5sum to build-all.sh output per target (diff)
downloadanduril-3d12b7066d27b591e0283e20ed066bc66e29fbe4.tar.gz
anduril-3d12b7066d27b591e0283e20ed066bc66e29fbe4.tar.bz2
anduril-3d12b7066d27b591e0283e20ed066bc66e29fbe4.zip
refactor checkpoint: splitting MCU-specific code into arch/$MCU.[ch]
Phew, that's a lot of changes! And there's still a lot more to do...
Diffstat (limited to '')
-rw-r--r--fsm/spaghetti-monster.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/fsm/spaghetti-monster.h b/fsm/spaghetti-monster.h
index c035d5b..7084ad4 100644
--- a/fsm/spaghetti-monster.h
+++ b/fsm/spaghetti-monster.h
@@ -13,10 +13,9 @@
* - ...
*/
-#include "arch/mcu.h"
+////////// include all the .h files //////////
-#include <avr/eeprom.h>
-#include <avr/power.h>
+#include "arch/mcu.h"
// include project definitions to help with recognizing symbols
#include "fsm/events.h"
@@ -39,6 +38,10 @@
#include "arch/delay.h"
#endif
+////////// include all the .c files //////////
+
+#include "arch/mcu.c"
+
#ifdef USE_DEBUG_BLINK
#define DEBUG_FLASH PWM1_LVL = 64; delay_4ms(2); PWM1_LVL = 0;
void debug_blink(uint8_t num) {