~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/chan-aux.h

  • Committer: Selene ToyKeeper
  • Date: 2023-11-04 15:09:10 UTC
  • mfrom: (483.1.175 anduril2)
  • Revision ID: bzr@toykeeper.net-20231104150910-ddd3afw4nhfvof2l
merged anduril2 branch -> fsm, with *years* of changes
(this also means this code is now Anduril 2 instead of Anduril 1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// channel modes for single color aux LEDs
 
2
// Copyright (C) 2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
#pragma once
 
5
 
 
6
#define NUM_AUX_CHANNEL_MODES  1
 
7
 
 
8
// include / exclude field based on compile options
 
9
#ifdef USE_CHANNEL_MODE_ARGS
 
10
    #define AUX_HAS_ARGS , .has_args = 0
 
11
#else
 
12
    #define AUX_HAS_ARGS
 
13
#endif
 
14
 
 
15
#define AUX_CHANNELS \
 
16
    { \
 
17
        .set_level    = set_level_aux, \
 
18
        .gradual_tick = gradual_tick_null \
 
19
        AUX_HAS_ARGS \
 
20
    }
 
21
 
 
22
void set_level_aux(uint8_t level);
 
23
 
 
24
bool gradual_tick_null(uint8_t gt);
 
25