Ja Rule  Latest Git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
system_settings.h
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15  *
16  * system_settings.h
17  * Copyright (C) 2015 Simon Newton
18  */
19 
20 #ifndef FIRMWARE_SRC_SYSTEM_CONFIG_MX_795_512L_SYSTEM_SETTINGS_H_
21 #define FIRMWARE_SRC_SYSTEM_CONFIG_MX_795_512L_SYSTEM_SETTINGS_H_
22 
23 #include "board_init.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
51 #define PRE_APP_INIT_HOOK EthernetSK2_PreAppHook
52 
65 #define COARSE_TIMER_ID 2
66 
79 #define TRANSCEIVER_UART 1
80 
84 #define TRANSCEIVER_TIMER 3
85 
89 #define TRANSCEIVER_IC 2
90 
94 #define TRANSCEIVER_PORT PORT_CHANNEL_F
95 
99 #define TRANSCEIVER_PORT_BIT PORTS_BIT_POS_8
100 
104 #define TRANSCEIVER_TX_ENABLE_PORT_BIT PORTS_BIT_POS_0
105 
109 #define TRANSCEIVER_RX_ENABLE_PORT_BIT PORTS_BIT_POS_1
110 
123 #define RDM_RESPONDER_IDENTIFY_PORT PORT_CHANNEL_D
124 
128 #define RDM_RESPONDER_IDENTIFY_PORT_BIT PORTS_BIT_POS_3
129 
133 #define RDM_RESPONDER_MUTE_PORT PORT_CHANNEL_D
134 
138 #define RDM_RESPONDER_MUTE_PORT_BIT PORTS_BIT_POS_12
139 
152 #define SPI_MODULE_ID SPI_ID_1
153 
157 #define SPI_BAUD_RATE 1000000u
158 
162 #define SPI_USE_ENHANCED_BUFFERING true
163 
178 #define USB_POWER_CONSUMPTION 100
179 
183 #ifdef __cplusplus
184 }
185 #endif
186 
191 #endif // FIRMWARE_SRC_SYSTEM_CONFIG_MX_795_512L_SYSTEM_SETTINGS_H_