diff options
| author | Selene ToyKeeper | 2023-11-02 17:16:25 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-02 17:16:25 -0600 |
| commit | 7cb4fe0944b839f28dfd96a88a772cd6a8b58019 (patch) | |
| tree | 8d3b203f1650edc28b1f67e1589e3bc870b33fa6 /spaghetti-monster/spaghetti-monster.h | |
| parent | added LICENSE (GPLv3) (diff) | |
| download | anduril-7cb4fe0944b839f28dfd96a88a772cd6a8b58019.tar.gz anduril-7cb4fe0944b839f28dfd96a88a772cd6a8b58019.tar.bz2 anduril-7cb4fe0944b839f28dfd96a88a772cd6a8b58019.zip | |
reorganized project files (part 1)
(just moved files, didn't change the contents yet,
and nothing will work without updating #includes and build scripts and stuff)
Diffstat (limited to 'spaghetti-monster/spaghetti-monster.h')
| -rw-r--r-- | spaghetti-monster/spaghetti-monster.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/spaghetti-monster/spaghetti-monster.h b/spaghetti-monster/spaghetti-monster.h deleted file mode 100644 index 77431f8..0000000 --- a/spaghetti-monster/spaghetti-monster.h +++ /dev/null @@ -1,75 +0,0 @@ -// spaghetti-monster.h: UI toolkit / microkernel for e-switch flashlights. -// Copyright (C) 2017-2023 Selene ToyKeeper -// SPDX-License-Identifier: GPL-3.0-or-later - -#pragma once - -/* - * SpaghettiMonster: Generic foundation code for e-switch flashlights. - * Other possible names: - * - FSM - * - RoundTable - * - Mostly Harmless - * - ... - */ - -#include "tk-attiny.h" - -#include <avr/eeprom.h> -#include <avr/power.h> - -// include project definitions to help with recognizing symbols -#include "fsm-events.h" -#include "fsm-states.h" -#include "fsm-adc.h" -#include "fsm-wdt.h" -#include "fsm-pcint.h" -#include "fsm-standby.h" -#include "fsm-channels.h" -#include "fsm-ramping.h" -#include "fsm-random.h" -#ifdef USE_EEPROM -#include "fsm-eeprom.h" -#endif -#include "fsm-misc.h" -#include "fsm-main.h" - -#if defined(USE_DELAY_MS) || defined(USE_DELAY_4MS) || defined(USE_DELAY_ZERO) || defined(USE_DEBUG_BLINK) -#define OWN_DELAY -#include "tk-delay.h" -#endif - -#ifdef USE_DEBUG_BLINK -#define DEBUG_FLASH PWM1_LVL = 64; delay_4ms(2); PWM1_LVL = 0; -void debug_blink(uint8_t num) { - for(; num>0; num--) { - PWM1_LVL = 32; - delay_4ms(100/4); - PWM1_LVL = 0; - delay_4ms(100/4); - } -} -#endif - -// Define these in your SpaghettiMonster recipe -// boot-time tasks -void setup(); -// single loop iteration, runs continuously -void loop(); - -// include executable functions too, for easier compiling -#include "fsm-states.c" -#include "fsm-events.c" -#include "fsm-adc.c" -#include "fsm-wdt.c" -#include "fsm-pcint.c" -#include "fsm-standby.c" -#include "fsm-channels.c" -#include "fsm-ramping.c" -#include "fsm-random.c" -#ifdef USE_EEPROM -#include "fsm-eeprom.c" -#endif -#include "fsm-misc.c" -#include "fsm-main.c" - |
