FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/serial/init.c @ 128:789a9a95533f
nuc-fw: more minor preparations for the big transition
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 01 Nov 2013 01:31:39 +0000 |
parents | e40d8661ecab |
children |
comparison
equal
deleted
inserted
replaced
127:f4f0c8738dcb | 128:789a9a95533f |
---|---|
19 ** with XXX being DUMMY, UART_IRDA or UART_MODEM | 19 ** with XXX being DUMMY, UART_IRDA or UART_MODEM |
20 */ | 20 */ |
21 | 21 |
22 const T_AppliSerialInfo appli_ser_cfg_info = { | 22 const T_AppliSerialInfo appli_ser_cfg_info = { |
23 /* | 23 /* |
24 * Default configuration: for now we always set it | 24 * Default configuration: set it to the "standard" |
25 * to the "standard" 0x0168; later we may add | 25 * 0x0168, unless the RVTMUX serial channel has been |
26 * compile-time conditionals based on FreeCalypso | 26 * moved to the MODEM UART. |
27 * configuration magic. | |
28 */ | 27 */ |
28 #if CONFIG_RVTMUX_ON_MODEM | |
29 {DUMMY_BT_HCI, | |
30 DUMMY_FAX_DATA, | |
31 UART_MODEM_TRACE, | |
32 DUMMY_TRACE}, // 0x0248 | |
33 #else | |
29 {DUMMY_BT_HCI, | 34 {DUMMY_BT_HCI, |
30 UART_MODEM_FAX_DATA, | 35 UART_MODEM_FAX_DATA, |
31 UART_IRDA_TRACE, | 36 UART_IRDA_TRACE, |
32 DUMMY_TRACE}, // default config = 0x0168 | 37 DUMMY_TRACE}, // default config = 0x0168 |
33 #ifdef BTEMOBILE | 38 #endif |
39 /* number of possible configs */ | |
40 #ifdef BTEMOBILE | |
34 12, // 12 serial config allowed | 41 12, // 12 serial config allowed |
35 #else // BTEMOBILE | 42 #else // BTEMOBILE |
36 9, // 9 serial config allowed | 43 9, // 9 serial config allowed |
37 #endif | 44 #endif |
38 { | 45 { |
39 // Configs with Condat Panel only | 46 // Configs with Condat Panel only |
40 {DUMMY_BT_HCI, | 47 {DUMMY_BT_HCI, |
41 DUMMY_FAX_DATA, | 48 DUMMY_FAX_DATA, |
42 DUMMY_TRACE, | 49 DUMMY_TRACE, |
71 // Configs with Condat Panel and AT-Cmd | 78 // Configs with Condat Panel and AT-Cmd |
72 {DUMMY_BT_HCI, | 79 {DUMMY_BT_HCI, |
73 UART_MODEM_FAX_DATA, | 80 UART_MODEM_FAX_DATA, |
74 DUMMY_TRACE, | 81 DUMMY_TRACE, |
75 UART_IRDA_TRACE}, // 0x1068 | 82 UART_IRDA_TRACE}, // 0x1068 |
76 #ifdef BTEMOBILE | 83 #ifdef BTEMOBILE |
77 // Configs with L1/Riviera Trace and Bluetooth HCI | 84 // Configs with L1/Riviera Trace and Bluetooth HCI |
78 {UART_IRDA_BT_HCI, | 85 {UART_IRDA_BT_HCI, |
79 DUMMY_FAX_DATA, | 86 DUMMY_FAX_DATA, |
80 UART_MODEM_TRACE, | 87 UART_MODEM_TRACE, |
81 DUMMY_TRACE}, // 0x0249 | 88 DUMMY_TRACE}, // 0x0249 |
86 // Configs with AT-Cmd and Bluetooth HCI | 93 // Configs with AT-Cmd and Bluetooth HCI |
87 {UART_IRDA_BT_HCI, | 94 {UART_IRDA_BT_HCI, |
88 UART_MODEM_FAX_DATA, | 95 UART_MODEM_FAX_DATA, |
89 DUMMY_TRACE, | 96 DUMMY_TRACE, |
90 DUMMY_TRACE}, // 0x0069 | 97 DUMMY_TRACE}, // 0x0069 |
91 #endif // BTEMOBILE | 98 #endif // BTEMOBILE |
92 // Configs with L1/Riviera Trace and AT-Cmd | 99 // Configs with L1/Riviera Trace and AT-Cmd |
93 {DUMMY_BT_HCI, | 100 {DUMMY_BT_HCI, |
94 UART_MODEM_FAX_DATA, | 101 UART_MODEM_FAX_DATA, |
95 UART_IRDA_TRACE, | 102 UART_IRDA_TRACE, |
96 DUMMY_TRACE} // 0x0168 | 103 DUMMY_TRACE} // 0x0168 |