]> git.zerfleddert.de Git - fnordlicht-mini/blame - firmware/fnordlicht-firmware/config.h
import original fnordlichtmini firmware
[fnordlicht-mini] / firmware / fnordlicht-firmware / config.h
CommitLineData
ec1bef8e 1/* vim:ts=4 sts=4 et tw=80
2 *
3 * fnordlicht firmware
4 *
5 * for additional information please
6 * see http://lochraster.org/fnordlichtmini
7 *
8 * (c) by Alexander Neumann <alexander@bumpern.de>
9 * Lars Noschinski <lars@public.noschinski.de>
10 *
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.
14 *
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
18 * more details.
19 *
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/>.
22 */
23
24/*
25 * ATTENTION:
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
29 * first time.
30 */
31
32#ifndef _FNORDLICHT_CONFIG_H
33#define _FNORDLICHT_CONFIG_H
34
35/* debug defines */
36#ifndef CONFIG_DEBUG
37#define CONFIG_DEBUG 0
38#endif
39
40/* include the script interpreter per default */
41#ifndef CONFIG_SCRIPT
42#define CONFIG_SCRIPT 1
43#endif
44
45/* define default startup script (0 is colorwheel, 1 is random) */
46#ifndef CONFIG_SCRIPT_DEFAULT
47#define CONFIG_SCRIPT_DEFAULT 1
48#endif
49
50/* include uart support per default */
51#ifndef CONFIG_SERIAL
52#define CONFIG_SERIAL 1
53#endif
54
55/* include remote command support per default */
56#ifndef CONFIG_REMOTE
57#define CONFIG_REMOTE 1
58#endif
59
60/* secondary output pins */
61#ifndef CONFIG_SECONDARY_PWM
62#define CONFIG_SECONDARY_PWM 1
63#endif
64
65/* set default baudrate */
66#ifndef CONFIG_SERIAL_BAUDRATE
67#define CONFIG_SERIAL_BAUDRATE 19200
68#endif
69
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
74 */
75#ifndef CONFIG_MASTER_MODE
76#define CONFIG_MASTER_MODE 1
77#endif
78
79/* check if hardware is valid */
80#if defined(HARDWARE_fnordlicht)
81 /* specific settings for old fnordlicht hardware */
82 #if !defined(PWM_INVERTED)
83 #define PWM_INVERTED
84 #endif
85
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
90 #endif
91
92#elif defined(HARDWARE_fnordlichtmini)
93 /* specific settings for fnordlichtmini hardware */
94
95#else
96#error "unknown HARDWARE platform!"
97#endif
98
99#endif /* _FNORDLICHT_CONFIG_H */
Impressum, Datenschutz