]> git.zerfleddert.de Git - fnordlicht-mini/blame_incremental - firmware/fnordlicht-firmware/config.h
fix config.mk file header comment
[fnordlicht-mini] / firmware / fnordlicht-firmware / config.h
... / ...
CommitLineData
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/* check if hardware is valid */
71#if defined(HARDWARE_fnordlicht)
72 /* specific settings for old fnordlicht hardware */
73 #if !defined(PWM_INVERTED)
74 #define PWM_INVERTED
75 #endif
76
77 /* disable secondary pwm for old fnordlicht hardware */
78 #if defined(CONFIG_SECONDARY_PWM) && CONFIG_SECONDARY_PWM
79 #undef CONFIG_SECONDARY_PWM
80 #define CONFIG_SECONDARY_PWM 0
81 #endif
82
83#elif defined(HARDWARE_fnordlichtmini)
84 /* specific settings for fnordlichtmini hardware */
85
86#else
87#error "unknown HARDWARE platform!"
88#endif
89
90#endif /* _FNORDLICHT_CONFIG_H */
Impressum, Datenschutz