cec: bumped interface version to 4 stay in sync with the lib version. added changelog...
[deb_libcec.git] / src / lib / libPlatform / baudrate.h
CommitLineData
abbca718
LOK
1#pragma once
2
3/*
4 * boblight
5 * Copyright (C) Bob 2009
6 *
7 * boblight is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * boblight is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21//every baudrate I could find is in here in an #ifdef block
22//so it should compile on everything
23
24static struct sbaudrate
25{
26 int rate;
27 int symbol;
28}
29baudrates[] =
30{
31#ifdef B50
32 { 50, B50 },
33#endif
34#ifdef B75
35 { 75, B75 },
36#endif
37#ifdef B110
38 { 110, B110 },
39#endif
40#ifdef B134
41 { 134, B134 },
42#endif
43#ifdef B150
44 { 150, B150 },
45#endif
46#ifdef B200
47 { 200, B200 },
48#endif
49#ifdef B300
50 { 300, B300 },
51#endif
52#ifdef B600
53 { 600, B600 },
54#endif
55#ifdef B1200
56 { 1200, B1200 },
57#endif
58#ifdef B1800
59 { 1800, B1800 },
60#endif
61#ifdef B2400
62 { 2400, B2400 },
63#endif
64#ifdef B4800
65 { 4800, B4800 },
66#endif
67#ifdef B9600
68 { 9600, B9600 },
69#endif
70#ifdef B14400
71 { 14400, B14400 },
72#endif
73#ifdef B19200
74 { 19200, B19200 },
75#endif
76#ifdef B28800
77 { 28800, B28800 },
78#endif
79#ifdef B38400
80 { 38400, B38400 },
81#endif
82#ifdef B57600
83 { 57600, B57600 },
84#endif
85#ifdef B76800
86 { 76800, B76800 },
87#endif
88#ifdef B115200
89 { 115200, B115200 },
90#endif
91#ifdef B230400
92 { 230400, B230400 },
93#endif
94#ifdef B250000
95 { 250000, B250000 },
96#endif
97#ifdef B460800
98 { 460800, B460800 },
99#endif
100#ifdef B500000
101 { 500000, B500000 },
102#endif
103#ifdef B576000
104 { 576000, B576000 },
105#endif
106#ifdef B921600
107 { 921600, B921600 },
108#endif
109#ifdef B1000000
110 { 1000000, B1000000 },
111#endif
112#ifdef B1152000
113 { 1152000, B1152000 },
114#endif
115#ifdef B1500000
116 { 1500000, B1500000 },
117#endif
118#ifdef B2000000
119 { 2000000, B2000000 },
120#endif
121#ifdef B2500000
122 { 2500000, B2500000 },
123#endif
124#ifdef B3000000
125 { 3000000, B3000000 },
126#endif
127#ifdef B3500000
128 { 3500000, B3500000 },
129#endif
130#ifdef B4000000
131 { 4000000, B4000000 },
132#endif
133#ifdef CBR_110
134 { 110, CBR_110 },
135#endif
136#ifdef CBR_300
137 { 300, CBR_300 },
138#endif
139#ifdef CBR_600
140 { 600, CBR_600 },
141#endif
142#ifdef CBR_1200
143 { 1200, CBR_1200 },
144#endif
145#ifdef CBR_2400
146 { 2400, CBR_2400 },
147#endif
148#ifdef CBR_4800
149 { 4800, CBR_4800 },
150#endif
151#ifdef CBR_9600
152 { 9600, CBR_9600 },
153#endif
154#ifdef CBR_11400
155 { 11400, CBR_14400 },
156#endif
157#ifdef CBR_19200
158 { 19200, CBR_19200 },
159#endif
160#ifdef CBR_38400
161 { 38400, CBR_38400 },
162#endif
163#ifdef CBR_56000
164 { 56000, CBR_56000 },
165#endif
166#ifdef CBR_57600
167 { 57600, CBR_57600 },
168#endif
169#ifdef CBR_115200
170 { 115200, CBR_115200 },
171#endif
172#ifdef CBR_128000
173 { 128000, CBR_128000 },
174#endif
175#ifdef CBR_256000
176 { 256000, CBR_256000 },
177#endif
178 { -1, -1}
179};