aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-28 01:26:17 -0600
committerSelene ToyKeeper2020-07-28 01:26:17 -0600
commit3322f7303b8c8237467968e2b47aae1111df90d3 (patch)
tree35b1b7775e03e7208d9dd91d1e46fdfa4e902f8c
parentmoved aux LED code into its own file (diff)
downloadanduril-3322f7303b8c8237467968e2b47aae1111df90d3.tar.gz
anduril-3322f7303b8c8237467968e2b47aae1111df90d3.tar.bz2
anduril-3322f7303b8c8237467968e2b47aae1111df90d3.zip
renamed strobes.* to strobe-modes.*
-rw-r--r--spaghetti-monster/anduril/anduril.c6
-rw-r--r--spaghetti-monster/anduril/ff-strobe-modes.c (renamed from spaghetti-monster/anduril/ff-strobes.c)8
-rw-r--r--spaghetti-monster/anduril/ff-strobe-modes.h (renamed from spaghetti-monster/anduril/ff-strobes.h)6
-rw-r--r--spaghetti-monster/anduril/strobe-modes-fsm.h (renamed from spaghetti-monster/anduril/strobes-fsm.h)6
-rw-r--r--spaghetti-monster/anduril/strobe-modes.c (renamed from spaghetti-monster/anduril/strobes.c)10
-rw-r--r--spaghetti-monster/anduril/strobe-modes.h (renamed from spaghetti-monster/anduril/strobes.h)8
6 files changed, 22 insertions, 22 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index b479552..7416fb7 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -74,7 +74,7 @@
#endif
// enable FSM features needed by strobe modes
-#include "strobes-fsm.h"
+#include "strobe-modes-fsm.h"
// figure out how many bytes of eeprom are needed,
// based on which UI features are enabled
@@ -134,7 +134,7 @@
#endif
// this one detects its own enable/disable settings
-#include "strobes.h"
+#include "strobe-modes.h"
#ifdef USE_SOS_MODE
#include "sos-mode.h"
@@ -189,7 +189,7 @@
#endif
#ifdef USE_STROBE_STATE
-#include "strobes.c"
+#include "strobe-modes.c"
#endif
#ifdef USE_SOS_MODE
diff --git a/spaghetti-monster/anduril/ff-strobes.c b/spaghetti-monster/anduril/ff-strobe-modes.c
index c0b655e..eaac92a 100644
--- a/spaghetti-monster/anduril/ff-strobes.c
+++ b/spaghetti-monster/anduril/ff-strobe-modes.c
@@ -1,5 +1,5 @@
/*
- * ff-strobes.c: Fireflies Flashlights strobe modes for Anduril.
+ * ff-strobe-modes.c: Fireflies Flashlights strobe modes for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef FF_STROBES_C
-#define FF_STROBES_C
+#ifndef FF_STROBE_MODES_C
+#define FF_STROBE_MODES_C
-#include "ff-strobes.h"
+#include "ff-strobe-modes.h"
uint8_t boring_strobe_state(Event event, uint16_t arg) {
// police strobe and SOS, meh
diff --git a/spaghetti-monster/anduril/ff-strobes.h b/spaghetti-monster/anduril/ff-strobe-modes.h
index 0c57e2c..75a38e3 100644
--- a/spaghetti-monster/anduril/ff-strobes.h
+++ b/spaghetti-monster/anduril/ff-strobe-modes.h
@@ -1,5 +1,5 @@
/*
- * ff-strobes.h: Fireflies Flashlights strobe modes for Anduril.
+ * ff-strobe-modes.h: Fireflies Flashlights strobe modes for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef FF_STROBES_H
-#define FF_STROBES_H
+#ifndef FF_STROBE_MODES_H
+#define FF_STROBE_MODES_H
uint8_t boring_strobe_state(Event event, uint16_t arg);
volatile uint8_t boring_strobe_type = 0;
diff --git a/spaghetti-monster/anduril/strobes-fsm.h b/spaghetti-monster/anduril/strobe-modes-fsm.h
index 2eb2d79..002a951 100644
--- a/spaghetti-monster/anduril/strobes-fsm.h
+++ b/spaghetti-monster/anduril/strobe-modes-fsm.h
@@ -1,5 +1,5 @@
/*
- * strobes-fsm.h: FSM config for strobe modes in Anduril.
+ * strobe-modes-fsm.h: FSM config for strobe modes in Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef STROBES_FSM_H
-#define STROBES_FSM_H
+#ifndef STROBE_MODES_FSM_H
+#define STROBE_MODES_FSM_H
// enable the random number generator if we need it
#if defined(USE_LIGHTNING_MODE) || defined(USE_CANDLE_MODE)
diff --git a/spaghetti-monster/anduril/strobes.c b/spaghetti-monster/anduril/strobe-modes.c
index 1037c0e..8c5f34d 100644
--- a/spaghetti-monster/anduril/strobes.c
+++ b/spaghetti-monster/anduril/strobe-modes.c
@@ -1,5 +1,5 @@
/*
- * strobes.c: Strobe modes for Anduril.
+ * strobe-modes.c: Strobe modes for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef STROBES_C
-#define STROBES_C
+#ifndef STROBE_MODES_C
+#define STROBE_MODES_C
-#include "strobes.h"
+#include "strobe-modes.h"
#ifdef USE_STROBE_STATE
uint8_t strobe_state(Event event, uint16_t arg) {
@@ -419,7 +419,7 @@ uint8_t candle_mode_state(Event event, uint16_t arg) {
#ifdef USE_BORING_STROBE_STATE
-#include "ff-strobes.c"
+#include "ff-strobe-modes.c"
#endif
diff --git a/spaghetti-monster/anduril/strobes.h b/spaghetti-monster/anduril/strobe-modes.h
index c74b4a0..e2711f2 100644
--- a/spaghetti-monster/anduril/strobes.h
+++ b/spaghetti-monster/anduril/strobe-modes.h
@@ -1,5 +1,5 @@
/*
- * strobes.h: Strobe modes for Anduril.
+ * strobe-modes.h: Strobe modes for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef STROBES_H
-#define STROBES_H
+#ifndef STROBE_MODES_H
+#define STROBE_MODES_H
// internal numbering for strobe modes
#ifdef USE_STROBE_STATE
@@ -97,7 +97,7 @@ uint8_t candle_mode_state(Event event, uint16_t arg);
#if defined(USE_POLICE_STROBE_MODE) || defined(USE_SOS_MODE_IN_FF_GROUP)
#define USE_BORING_STROBE_STATE
-#include "ff-strobes.h"
+#include "ff-strobe-modes.h"
#endif
#endif