OLE Developer Guide
Latest Git
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
app_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
* template/app_settings.h
17
* Copyright (C) 2015 Simon Newton
18
*/
19
20
#ifndef BOARDCFG_TEMPLATE_APP_SETTINGS_H_
21
#define BOARDCFG_TEMPLATE_APP_SETTINGS_H_
22
23
#include "board_init.h"
24
#include "
common_settings.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
54
#define PRE_APP_INIT_HOOK Number8_PreAppHook
55
68
#define COARSE_TIMER_ID 2
69
82
#define TRANSCEIVER_UART 5
83
87
#define TRANSCEIVER_TIMER 3
88
92
#define TRANSCEIVER_IC 5
93
97
#define TRANSCEIVER_PORT PORT_CHANNEL_B
98
102
#define TRANSCEIVER_PORT_BIT PORTS_BIT_POS_14
103
107
#define TRANSCEIVER_TX_ENABLE_PORT_BIT PORTS_BIT_POS_9
108
112
#define TRANSCEIVER_RX_ENABLE_PORT_BIT PORTS_BIT_POS_10
113
126
#define RDM_RESPONDER_IDENTIFY_PORT PORT_CHANNEL_D
127
131
#define RDM_RESPONDER_IDENTIFY_PORT_BIT PORTS_BIT_POS_11
132
136
#define RDM_RESPONDER_MUTE_PORT PORT_CHANNEL_D
137
141
#define RDM_RESPONDER_MUTE_PORT_BIT PORTS_BIT_POS_0
142
148
#define RDM_RESPONDER_TEMPERATURE_SENSOR ADC_INPUT_POSITIVE_AN2
149
162
#define SPI_MODULE_ID SPI_ID_2
163
167
#define SPI_BAUD_RATE 1000000u
168
172
#define SPI_USE_ENHANCED_BUFFERING true
173
179
#ifdef __cplusplus
180
}
181
#endif
182
183
#endif // BOARDCFG_TEMPLATE_APP_SETTINGS_H_
common_settings.h
Configuration settings by both the bootloader and the main app.
boardcfg
template
app_settings.h
Generated on Wed Aug 1 2018 03:17:48 for OLE Developer Guide by
1.8.8