]>
git.zerfleddert.de Git - fnordlicht-mini/blob - firmware/fnordlicht-firmware/config.h
b708a4815f3a84b5ed14fdaa2eb47ad3cb140540
1 /* vim:ts=4 sts=4 et tw=80
5 * for additional information please
6 * see http://lochraster.org/fnordlichtmini
8 * (c) by Alexander Neumann <alexander@bumpern.de>
9 * Lars Noschinski <lars@public.noschinski.de>
11 * This program is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 3 as published by
13 * the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
20 * You should have received a copy of the GNU General Public License along with
21 * this program. If not, see <http://www.gnu.org/licenses/>.
26 * This file is under version control. Please use the file "config.mk" (which
27 * is not under version control) for configuring the fnordlicht firmware.
28 * A file with all the default values will be created by running 'make' the
32 #ifndef _FNORDLICHT_CONFIG_H
33 #define _FNORDLICHT_CONFIG_H
37 #define CONFIG_DEBUG 0
40 /* include the script interpreter per default */
42 #define CONFIG_SCRIPT 1
45 /* define default startup script (0 is colorwheel, 1 is random) */
46 #ifndef CONFIG_SCRIPT_DEFAULT
47 #define CONFIG_SCRIPT_DEFAULT 1
50 /* include uart support per default */
52 #define CONFIG_SERIAL 1
55 /* include remote command support per default */
57 #define CONFIG_REMOTE 1
60 /* secondary output pins */
61 #ifndef CONFIG_SECONDARY_PWM
62 #define CONFIG_SECONDARY_PWM 1
65 /* set default baudrate */
66 #ifndef CONFIG_SERIAL_BAUDRATE
67 #define CONFIG_SERIAL_BAUDRATE 19200
70 /* configure master mode:
71 * 0 disable master mode completely
72 * 1 check if master mode jumper is set (default)
73 * 2 always act as master
75 #ifndef CONFIG_MASTER_MODE
76 #define CONFIG_MASTER_MODE 1
79 /* check if hardware is valid */
80 #if defined(HARDWARE_fnordlicht)
81 /* specific settings for old fnordlicht hardware */
82 #if !defined(PWM_INVERTED)
86 /* disable secondary pwm for old fnordlicht hardware */
87 #if defined(CONFIG_SECONDARY_PWM) && CONFIG_SECONDARY_PWM
88 #undef CONFIG_SECONDARY_PWM
89 #define CONFIG_SECONDARY_PWM 0
92 #elif defined(HARDWARE_fnordlichtmini)
93 /* specific settings for fnordlichtmini hardware */
96 #error "unknown HARDWARE platform!"
99 #endif /* _FNORDLICHT_CONFIG_H */