diff options
Diffstat (limited to 'lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/mcuconf.h')
-rw-r--r-- | lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/mcuconf.h | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/mcuconf.h b/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/mcuconf.h new file mode 100644 index 000000000..fe8e77c6b --- /dev/null +++ b/lib/chibios-contrib/testhal/TIVA/TM4C123x/I2C/mcuconf.h | |||
@@ -0,0 +1,144 @@ | |||
1 | /* | ||
2 | Copyright (C) 2014..2017 Marco Veeneman | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /* | ||
18 | * TM4C123x drivers configuration. | ||
19 | * The following settings override the default settings present in | ||
20 | * the various device driver implementation headers. | ||
21 | * Note that the settings for each driver only have effect if the whole | ||
22 | * driver is enabled in halconf.h. | ||
23 | * | ||
24 | * IRQ priorities: | ||
25 | * 7...0 Lowest...Highest. | ||
26 | */ | ||
27 | |||
28 | #define TM4C123x_MCUCONF | ||
29 | |||
30 | /* | ||
31 | * HAL driver system settings. | ||
32 | */ | ||
33 | #define TIVA_OSCSRC SYSCTL_RCC2_OSCSRC2_MO | ||
34 | #define TIVA_MOSC_ENABLE TRUE | ||
35 | #define TIVA_DIV400_VALUE 1 | ||
36 | #define TIVA_SYSDIV_VALUE 2 | ||
37 | #define TIVA_USESYSDIV_ENABLE FALSE | ||
38 | #define TIVA_SYSDIV2LSB_ENABLE FALSE | ||
39 | #define TIVA_BYPASS_VALUE 0 | ||
40 | #define TIVA_PWM_FIELDS (SYSCTL_RCC_USEPWMDIV | \ | ||
41 | SYSCTL_RCC_PWMDIV_8) | ||
42 | |||
43 | /* | ||
44 | * PAL driver system settings. | ||
45 | */ | ||
46 | #define TIVA_PAL_GPIOA_IRQ_PRIORITY 3 | ||
47 | #define TIVA_PAL_GPIOB_IRQ_PRIORITY 3 | ||
48 | #define TIVA_PAL_GPIOC_IRQ_PRIORITY 3 | ||
49 | #define TIVA_PAL_GPIOD_IRQ_PRIORITY 3 | ||
50 | #define TIVA_PAL_GPIOE_IRQ_PRIORITY 3 | ||
51 | #define TIVA_PAL_GPIOF_IRQ_PRIORITY 3 | ||
52 | |||
53 | /* | ||
54 | * GPT driver system settings. | ||
55 | */ | ||
56 | #define TIVA_GPT_USE_GPT0 FALSE | ||
57 | #define TIVA_GPT_USE_GPT1 FALSE | ||
58 | #define TIVA_GPT_USE_GPT2 FALSE | ||
59 | #define TIVA_GPT_USE_GPT3 FALSE | ||
60 | #define TIVA_GPT_USE_GPT4 FALSE | ||
61 | #define TIVA_GPT_USE_GPT5 FALSE | ||
62 | #define TIVA_GPT_USE_WGPT0 FALSE | ||
63 | #define TIVA_GPT_USE_WGPT1 FALSE | ||
64 | #define TIVA_GPT_USE_WGPT2 FALSE | ||
65 | #define TIVA_GPT_USE_WGPT3 FALSE | ||
66 | #define TIVA_GPT_USE_WGPT4 FALSE | ||
67 | #define TIVA_GPT_USE_WGPT5 FALSE | ||
68 | |||
69 | #define TIVA_GPT_GPT0A_IRQ_PRIORITY 7 | ||
70 | #define TIVA_GPT_GPT1A_IRQ_PRIORITY 7 | ||
71 | #define TIVA_GPT_GPT2A_IRQ_PRIORITY 7 | ||
72 | #define TIVA_GPT_GPT3A_IRQ_PRIORITY 7 | ||
73 | #define TIVA_GPT_GPT4A_IRQ_PRIORITY 7 | ||
74 | #define TIVA_GPT_GPT5A_IRQ_PRIORITY 7 | ||
75 | #define TIVA_GPT_WGPT0A_IRQ_PRIORITY 7 | ||
76 | #define TIVA_GPT_WGPT1A_IRQ_PRIORITY 7 | ||
77 | #define TIVA_GPT_WGPT2A_IRQ_PRIORITY 7 | ||
78 | #define TIVA_GPT_WGPT3A_IRQ_PRIORITY 7 | ||
79 | #define TIVA_GPT_WGPT4A_IRQ_PRIORITY 7 | ||
80 | #define TIVA_GPT_WGPT5A_IRQ_PRIORITY 7 | ||
81 | |||
82 | /* | ||
83 | * I2C driver system settings. | ||
84 | */ | ||
85 | #define TIVA_I2C_USE_I2C0 TRUE | ||
86 | #define TIVA_I2C_USE_I2C1 FALSE | ||
87 | #define TIVA_I2C_USE_I2C2 FALSE | ||
88 | #define TIVA_I2C_USE_I2C3 FALSE | ||
89 | #define TIVA_I2C_USE_I2C4 FALSE | ||
90 | #define TIVA_I2C_USE_I2C5 FALSE | ||
91 | #define TIVA_I2C_USE_I2C6 FALSE | ||
92 | #define TIVA_I2C_USE_I2C7 FALSE | ||
93 | #define TIVA_I2C_I2C0_IRQ_PRIORITY 4 | ||
94 | #define TIVA_I2C_I2C1_IRQ_PRIORITY 4 | ||
95 | #define TIVA_I2C_I2C2_IRQ_PRIORITY 4 | ||
96 | #define TIVA_I2C_I2C3_IRQ_PRIORITY 4 | ||
97 | #define TIVA_I2C_I2C4_IRQ_PRIORITY 4 | ||
98 | #define TIVA_I2C_I2C5_IRQ_PRIORITY 4 | ||
99 | #define TIVA_I2C_I2C6_IRQ_PRIORITY 4 | ||
100 | #define TIVA_I2C_I2C7_IRQ_PRIORITY 4 | ||
101 | |||
102 | /* | ||
103 | * PWM driver system settings. | ||
104 | */ | ||
105 | #define TIVA_PWM_USE_PWM0 FALSE | ||
106 | #define TIVA_PWM_USE_PWM1 FALSE | ||
107 | #define TIVA_PWM_PWM0_FAULT_IRQ_PRIORITY 4 | ||
108 | #define TIVA_PWM_PWM0_0_IRQ_PRIORITY 4 | ||
109 | #define TIVA_PWM_PWM0_1_IRQ_PRIORITY 4 | ||
110 | #define TIVA_PWM_PWM0_2_IRQ_PRIORITY 4 | ||
111 | #define TIVA_PWM_PWM0_3_IRQ_PRIORITY 4 | ||
112 | #define TIVA_PWM_PWM1_FAULT_IRQ_PRIORITY 4 | ||
113 | #define TIVA_PWM_PWM1_0_IRQ_PRIORITY 4 | ||
114 | #define TIVA_PWM_PWM1_1_IRQ_PRIORITY 4 | ||
115 | #define TIVA_PWM_PWM1_2_IRQ_PRIORITY 4 | ||
116 | #define TIVA_PWM_PWM1_3_IRQ_PRIORITY 4 | ||
117 | |||
118 | /* | ||
119 | * SERIAL driver system settings. | ||
120 | */ | ||
121 | #define TIVA_SERIAL_USE_UART0 TRUE | ||
122 | #define TIVA_SERIAL_USE_UART1 FALSE | ||
123 | #define TIVA_SERIAL_USE_UART2 FALSE | ||
124 | #define TIVA_SERIAL_USE_UART3 FALSE | ||
125 | #define TIVA_SERIAL_USE_UART4 FALSE | ||
126 | #define TIVA_SERIAL_USE_UART5 FALSE | ||
127 | #define TIVA_SERIAL_USE_UART6 FALSE | ||
128 | #define TIVA_SERIAL_USE_UART7 FALSE | ||
129 | #define TIVA_SERIAL_UART0_PRIORITY 5 | ||
130 | #define TIVA_SERIAL_UART1_PRIORITY 5 | ||
131 | #define TIVA_SERIAL_UART2_PRIORITY 5 | ||
132 | #define TIVA_SERIAL_UART3_PRIORITY 5 | ||
133 | #define TIVA_SERIAL_UART4_PRIORITY 5 | ||
134 | #define TIVA_SERIAL_UART5_PRIORITY 5 | ||
135 | #define TIVA_SERIAL_UART6_PRIORITY 5 | ||
136 | #define TIVA_SERIAL_UART7_PRIORITY 5 | ||
137 | |||
138 | /* | ||
139 | * ST driver system settings. | ||
140 | */ | ||
141 | #define TIVA_ST_IRQ_PRIORITY 2 | ||
142 | #define TIVA_ST_USE_WIDE_TIMER TRUE | ||
143 | #define TIVA_ST_TIMER_NUMBER 5 | ||
144 | #define TIVA_ST_TIMER_LETTER A | ||