summaryrefslogtreecommitdiff
path: root/common/lightbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/lightbar.c')
-rw-r--r--common/lightbar.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index 9a01e64ccd..c7fed67e7e 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -412,21 +412,6 @@ static inline int cycle_010(uint8_t i)
((_ramp_table[bucket + 1] - _ramp_table[bucket]) * index >> 2);
}
-/* This function provides a smooth oscillation between -0.5 and +0.5.
- * Zero starts at 0x00. */
-static inline int cycle_0p0n0(uint8_t i)
-{
- return cycle_010(i + 64) - FP_SCALE / 2;
-}
-
-/* This function provides a pulsing oscillation between -0.5 and +0.5. */
-static inline int cycle_npn(uint16_t i)
-{
- if ((i / 256) % 4)
- return -FP_SCALE / 2;
- return cycle_010(i) - FP_SCALE / 2;
-}
-
/******************************************************************************/
/* Here's where we keep messages waiting to be delivered to the lightbar task.
* If more than one is sent before the task responds, we only want to deliver
@@ -524,6 +509,14 @@ static uint32_t sequence_S3S0(void)
#ifdef BLUE_PULSING
+/* This function provides a pulsing oscillation between -0.5 and +0.5. */
+static inline int cycle_npn(uint16_t i)
+{
+ if ((i / 256) % 4)
+ return -FP_SCALE / 2;
+ return cycle_010(i) - FP_SCALE / 2;
+}
+
/* CPU is fully on */
static uint32_t sequence_S0(void)
{