Blackbox device type 'file' (SITL) considered working when file handler is available
[inav.git] / src / main / io / lights.h
blob935a540a811912d619064e6e748c1d8a2d1bbf48
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #include "config/parameter_group.h"
21 #include "common/time.h"
23 #ifdef USE_LIGHTS
25 typedef struct lightsConfig_s {
26 struct {
27 bool enabled;
28 uint16_t flash_period;
29 uint16_t flash_on_time;
30 } failsafe;
31 } lightsConfig_t;
33 PG_DECLARE(lightsConfig_t, lightsConfig);
35 void lightsUpdate(timeUs_t currentTimeUs);
36 void lightsInit(void);
38 #endif /* USE_LIGHTS */