-
Notifications
You must be signed in to change notification settings - Fork 2
/
ti_drivers_config.h
162 lines (125 loc) · 3.73 KB
/
ti_drivers_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
* ======== ti_drivers_config.h ========
* Configured TI-Drivers module declarations
*
* The macros defines herein are intended for use by applications which
* directly include this header. These macros should NOT be hard coded or
* copied into library source code.
*
* Symbols declared as const are intended for use with libraries.
* Library source code must extern the correct symbol--which is resolved
* when the application is linked.
*
* DO NOT EDIT - This file is generated for the CC1312R1F3RGZ
* by the SysConfig tool.
*/
#ifndef ti_drivers_config_h
#define ti_drivers_config_h
#define CONFIG_SYSCONFIG_PREVIEW
#define CONFIG_CC1312R1F3RGZ
#ifndef DeviceFamily_CC13X2
#define DeviceFamily_CC13X2
#endif
#include <ti/devices/DeviceFamily.h>
#include <stdint.h>
/* support C++ sources */
#ifdef __cplusplus
extern "C" {
#endif
/*
* ======== CCFG ========
*/
/*
* ======== ADC ========
*/
/* DIO24 */
extern const uint_least8_t CONFIG_ADC_0_CONST;
#define CONFIG_ADC_0 0
#define CONFIG_TI_DRIVERS_ADC_COUNT 1
/*
* ======== I2C ========
*/
/*
* SCL: DIO3
* SDA: DIO4
*/
extern const uint_least8_t CONFIG_I2C_0_CONST;
#define CONFIG_I2C_0 0
#define CONFIG_TI_DRIVERS_I2C_COUNT 1
/* ======== I2C Addresses and Speeds ======== */
#include <ti/drivers/I2C.h>
/* ---- CONFIG_I2C_0 I2C bus components ---- */
/* no components connected to CONFIG_I2C_0 */
/* max speed unspecified, defaulting to 100 Kbps */
#define CONFIG_I2C_0_MAXSPEED (100U) /* Kbps */
#define CONFIG_I2C_0_MAXBITRATE ((I2C_BitRate)I2C_100kHz)
/*
* ======== PIN ========
*/
#include <ti/drivers/PIN.h>
extern const PIN_Config BoardGpioInitTable[];
/* Parent Signal: CONFIG_ADC_0 ADC Pin, (DIO24) */
#define CONFIG_PIN_0 0x00000018
/* Parent Signal: CONFIG_I2C_0 SDA, (DIO4) */
#define CONFIG_PIN_1 0x00000004
/* Parent Signal: CONFIG_I2C_0 SCL, (DIO3) */
#define CONFIG_PIN_2 0x00000003
/* Parent Signal: CONFIG_UART_0 TX, (DIO10) */
#define CONFIG_PIN_3 0x0000000a
/* Parent Signal: CONFIG_UART_0 RX, (DIO9) */
#define CONFIG_PIN_4 0x00000009
/* Parent Signal: CONFIG_UART2_0 TX, (DIO17) */
#define CONFIG_PIN_5 0x00000011
/* Parent Signal: CONFIG_UART2_0 RX, (DIO16) */
#define CONFIG_PIN_6 0x00000010
#define CONFIG_TI_DRIVERS_PIN_COUNT 7
/*
* ======== UART ========
*/
/*
* TX: DIO10
* RX: DIO9
*/
extern const uint_least8_t CONFIG_UART_0_CONST;
#define CONFIG_UART_0 0
#define CONFIG_TI_DRIVERS_UART_COUNT 1
/*
* ======== UART2 ========
*/
/*
* TX: DIO17
* RX: DIO16
*/
extern const uint_least8_t CONFIG_UART2_0_CONST;
#define CONFIG_UART2_0 0
#define CONFIG_TI_DRIVERS_UART2_COUNT 1
/*
* ======== Watchdog ========
*/
extern const uint_least8_t CONFIG_WATCHDOG_0_CONST;
#define CONFIG_WATCHDOG_0 0
#define CONFIG_TI_DRIVERS_WATCHDOG_COUNT 1
/*
* ======== Board_init ========
* Perform all required TI-Drivers initialization
*
* This function should be called once at a point before any use of
* TI-Drivers.
*/
extern void Board_init(void);
/*
* ======== Board_initGeneral ========
* (deprecated)
*
* Board_initGeneral() is defined purely for backward compatibility.
*
* All new code should use Board_init() to do any required TI-Drivers
* initialization _and_ use <Driver>_init() for only where specific drivers
* are explicitly referenced by the application. <Driver>_init() functions
* are idempotent.
*/
#define Board_initGeneral Board_init
#ifdef __cplusplus
}
#endif
#endif /* include guard */