aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h')
-rw-r--r--lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h155
1 files changed, 155 insertions, 0 deletions
diff --git a/lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h b/lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h
new file mode 100644
index 000000000..4ca64f84e
--- /dev/null
+++ b/lib/chibios-contrib/demos/STM32/RT-STM32F303-DISCOVERY-PID/mcuconf_community.h
@@ -0,0 +1,155 @@
1/*
2 ChibiOS/RT - Copyright (C) 2014 Uladzimir Pylinsky aka barthess
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 * FSMC driver system settings.
19 */
20#define STM32_FSMC_USE_FSMC1 FALSE
21#define STM32_FSMC_FSMC1_IRQ_PRIORITY 10
22
23/*
24 * FSMC NAND driver system settings.
25 */
26#define STM32_NAND_USE_NAND1 FALSE
27#define STM32_NAND_USE_NAND2 FALSE
28#define STM32_NAND_USE_EXT_INT FALSE
29#define STM32_NAND_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
30#define STM32_NAND_DMA_PRIORITY 0
31#define STM32_NAND_DMA_ERROR_HOOK(nandp) osalSysHalt("DMA failure")
32
33/*
34 * FSMC SRAM driver system settings.
35 */
36#define STM32_USE_FSMC_SRAM FALSE
37#define STM32_SRAM_USE_FSMC_SRAM1 FALSE
38#define STM32_SRAM_USE_FSMC_SRAM2 FALSE
39#define STM32_SRAM_USE_FSMC_SRAM3 FALSE
40#define STM32_SRAM_USE_FSMC_SRAM4 FALSE
41
42/*
43 * FSMC SDRAM driver system settings.
44 */
45#define STM32_USE_FSMC_SDRAM FALSE
46
47/*
48 * TIMCAP driver system settings.
49 */
50#define STM32_TIMCAP_USE_TIM1 TRUE
51#define STM32_TIMCAP_USE_TIM2 FALSE
52#define STM32_TIMCAP_USE_TIM3 TRUE
53#define STM32_TIMCAP_USE_TIM4 TRUE
54#define STM32_TIMCAP_USE_TIM5 TRUE
55#define STM32_TIMCAP_USE_TIM8 TRUE
56#define STM32_TIMCAP_USE_TIM9 TRUE
57#define STM32_TIMCAP_TIM1_IRQ_PRIORITY 3
58#define STM32_TIMCAP_TIM2_IRQ_PRIORITY 3
59#define STM32_TIMCAP_TIM3_IRQ_PRIORITY 3
60#define STM32_TIMCAP_TIM4_IRQ_PRIORITY 3
61#define STM32_TIMCAP_TIM5_IRQ_PRIORITY 3
62#define STM32_TIMCAP_TIM8_IRQ_PRIORITY 3
63#define STM32_TIMCAP_TIM9_IRQ_PRIORITY 3
64
65/*
66 * COMP driver system settings.
67 */
68#define STM32_COMP_USE_COMP1 TRUE
69#define STM32_COMP_USE_COMP2 TRUE
70#define STM32_COMP_USE_COMP3 TRUE
71#define STM32_COMP_USE_COMP4 TRUE
72#define STM32_COMP_USE_COMP5 TRUE
73#define STM32_COMP_USE_COMP6 TRUE
74#define STM32_COMP_USE_COMP7 TRUE
75
76#define STM32_COMP_USE_INTERRUPTS TRUE
77#define STM32_COMP_1_2_3_IRQ_PRIORITY 5
78#define STM32_COMP_4_5_6_IRQ_PRIORITY 5
79#define STM32_COMP_7_IRQ_PRIORITY 5
80
81#if STM32_COMP_USE_INTERRUPTS
82#define STM32_DISABLE_EXTI21_22_29_HANDLER
83#define STM32_DISABLE_EXTI30_32_HANDLER
84#define STM32_DISABLE_EXTI33_HANDLER
85#endif
86
87/*
88 * USBH driver system settings.
89 */
90#define STM32_OTG_FS_CHANNELS_NUMBER 8
91#define STM32_OTG_HS_CHANNELS_NUMBER 12
92
93#define STM32_USBH_USE_OTG1 1
94#define STM32_OTG_FS_RXFIFO_SIZE 1024
95#define STM32_OTG_FS_PTXFIFO_SIZE 128
96#define STM32_OTG_FS_NPTXFIFO_SIZE 128
97
98#define STM32_USBH_USE_OTG2 0
99#define STM32_OTG_HS_RXFIFO_SIZE 2048
100#define STM32_OTG_HS_PTXFIFO_SIZE 1024
101#define STM32_OTG_HS_NPTXFIFO_SIZE 1024
102
103#define STM32_USBH_MIN_QSPACE 4
104#define STM32_USBH_CHANNELS_NP 4
105
106/*
107 * CRC driver system settings.
108 */
109#define STM32_CRC_USE_CRC1 TRUE
110#define STM32_CRC_CRC1_DMA_IRQ_PRIORITY 1
111#define STM32_CRC_CRC1_DMA_PRIORITY 2
112#define STM32_CRC_CRC1_DMA_STREAM STM32_DMA1_STREAM2
113
114#define CRCSW_USE_CRC1 FALSE
115#define CRCSW_CRC32_TABLE TRUE
116#define CRCSW_CRC16_TABLE TRUE
117#define CRCSW_PROGRAMMABLE TRUE
118
119/*
120 * EICU driver system settings.
121 */
122#define STM32_EICU_USE_TIM1 TRUE
123#define STM32_EICU_USE_TIM2 FALSE
124#define STM32_EICU_USE_TIM3 TRUE
125#define STM32_EICU_USE_TIM4 TRUE
126#define STM32_EICU_USE_TIM5 TRUE
127#define STM32_EICU_USE_TIM8 TRUE
128#define STM32_EICU_USE_TIM9 TRUE
129#define STM32_EICU_USE_TIM10 TRUE
130#define STM32_EICU_USE_TIM11 TRUE
131#define STM32_EICU_USE_TIM12 TRUE
132#define STM32_EICU_USE_TIM13 TRUE
133#define STM32_EICU_USE_TIM14 TRUE
134#define STM32_EICU_TIM1_IRQ_PRIORITY 7
135#define STM32_EICU_TIM2_IRQ_PRIORITY 7
136#define STM32_EICU_TIM3_IRQ_PRIORITY 7
137#define STM32_EICU_TIM4_IRQ_PRIORITY 7
138#define STM32_EICU_TIM5_IRQ_PRIORITY 7
139#define STM32_EICU_TIM8_IRQ_PRIORITY 7
140#define STM32_EICU_TIM9_IRQ_PRIORITY 7
141#define STM32_EICU_TIM10_IRQ_PRIORITY 7
142#define STM32_EICU_TIM11_IRQ_PRIORITY 7
143#define STM32_EICU_TIM12_IRQ_PRIORITY 7
144#define STM32_EICU_TIM13_IRQ_PRIORITY 7
145#define STM32_EICU_TIM14_IRQ_PRIORITY 7
146
147/*
148 * QEI driver system settings.
149 */
150#define STM32_QEI_USE_TIM1 TRUE
151#define STM32_QEI_USE_TIM2 FALSE
152#define STM32_QEI_USE_TIM3 TRUE
153#define STM32_QEI_TIM1_IRQ_PRIORITY 3
154#define STM32_QEI_TIM2_IRQ_PRIORITY 3
155#define STM32_QEI_TIM3_IRQ_PRIORITY 3