Skip to content

Commit 6f6c1a6

Browse files
committed
Provides access to Low Layer (LL) API
Includes all Low Layer header files. Note: use #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #pragma GCC diagnostic pop to avoid several warnings due to LL. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4e5bafa commit 6f6c1a6

File tree

2 files changed

+244
-0
lines changed

2 files changed

+244
-0
lines changed
+236
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
#ifdef STM32F0xx
2+
#include "stm32f0xx_ll_adc.h"
3+
#include "stm32f0xx_ll_bus.h"
4+
#include "stm32f0xx_ll_comp.h"
5+
#include "stm32f0xx_ll_cortex.h"
6+
#include "stm32f0xx_ll_crc.h"
7+
#include "stm32f0xx_ll_crs.h"
8+
#include "stm32f0xx_ll_dac.h"
9+
#include "stm32f0xx_ll_dma.h"
10+
#include "stm32f0xx_ll_exti.h"
11+
#include "stm32f0xx_ll_gpio.h"
12+
#include "stm32f0xx_ll_i2c.h"
13+
#include "stm32f0xx_ll_iwdg.h"
14+
#include "stm32f0xx_ll_pwr.h"
15+
#include "stm32f0xx_ll_rcc.h"
16+
#include "stm32f0xx_ll_rtc.h"
17+
#include "stm32f0xx_ll_spi.h"
18+
#include "stm32f0xx_ll_system.h"
19+
#include "stm32f0xx_ll_tim.h"
20+
#include "stm32f0xx_ll_usart.h"
21+
#include "stm32f0xx_ll_utils.h"
22+
#include "stm32f0xx_ll_wwdg.h"
23+
#endif
24+
#ifdef STM32F1xx
25+
#include "stm32f1xx_ll_adc.h"
26+
#include "stm32f1xx_ll_bus.h"
27+
#include "stm32f1xx_ll_cortex.h"
28+
#include "stm32f1xx_ll_crc.h"
29+
#include "stm32f1xx_ll_dac.h"
30+
#include "stm32f1xx_ll_dma.h"
31+
#include "stm32f1xx_ll_exti.h"
32+
#include "stm32f1xx_ll_fsmc.h"
33+
#include "stm32f1xx_ll_gpio.h"
34+
#include "stm32f1xx_ll_i2c.h"
35+
#include "stm32f1xx_ll_iwdg.h"
36+
#include "stm32f1xx_ll_pwr.h"
37+
#include "stm32f1xx_ll_rcc.h"
38+
#include "stm32f1xx_ll_rtc.h"
39+
#include "stm32f1xx_ll_sdmmc.h"
40+
#include "stm32f1xx_ll_spi.h"
41+
#include "stm32f1xx_ll_system.h"
42+
#include "stm32f1xx_ll_tim.h"
43+
#include "stm32f1xx_ll_usart.h"
44+
#include "stm32f1xx_ll_usb.h"
45+
#include "stm32f1xx_ll_utils.h"
46+
#include "stm32f1xx_ll_wwdg.h"
47+
#endif
48+
#ifdef STM32F2xx
49+
#include "stm32f2xx_ll_adc.h"
50+
#include "stm32f2xx_ll_bus.h"
51+
#include "stm32f2xx_ll_cortex.h"
52+
#include "stm32f2xx_ll_crc.h"
53+
#include "stm32f2xx_ll_dac.h"
54+
#include "stm32f2xx_ll_dma.h"
55+
#include "stm32f2xx_ll_exti.h"
56+
#include "stm32f2xx_ll_fsmc.h"
57+
#include "stm32f2xx_ll_gpio.h"
58+
#include "stm32f2xx_ll_i2c.h"
59+
#include "stm32f2xx_ll_iwdg.h"
60+
#include "stm32f2xx_ll_pwr.h"
61+
#include "stm32f2xx_ll_rcc.h"
62+
#include "stm32f2xx_ll_rng.h"
63+
#include "stm32f2xx_ll_rtc.h"
64+
#include "stm32f2xx_ll_sdmmc.h"
65+
#include "stm32f2xx_ll_spi.h"
66+
#include "stm32f2xx_ll_system.h"
67+
#include "stm32f2xx_ll_tim.h"
68+
#include "stm32f2xx_ll_usart.h"
69+
#include "stm32f2xx_ll_usb.h"
70+
#include "stm32f2xx_ll_utils.h"
71+
#include "stm32f2xx_ll_wwdg.h"
72+
#endif
73+
#ifdef STM32F3xx
74+
#include "stm32f3xx_ll_adc.h"
75+
#include "stm32f3xx_ll_bus.h"
76+
#include "stm32f3xx_ll_comp.h"
77+
#include "stm32f3xx_ll_cortex.h"
78+
#include "stm32f3xx_ll_crc.h"
79+
#include "stm32f3xx_ll_dac.h"
80+
#include "stm32f3xx_ll_dma.h"
81+
#include "stm32f3xx_ll_exti.h"
82+
#include "stm32f3xx_ll_fmc.h"
83+
#include "stm32f3xx_ll_gpio.h"
84+
#include "stm32f3xx_ll_hrtim.h"
85+
#include "stm32f3xx_ll_i2c.h"
86+
#include "stm32f3xx_ll_iwdg.h"
87+
#include "stm32f3xx_ll_opamp.h"
88+
#include "stm32f3xx_ll_pwr.h"
89+
#include "stm32f3xx_ll_rcc.h"
90+
#include "stm32f3xx_ll_rtc.h"
91+
#include "stm32f3xx_ll_spi.h"
92+
#include "stm32f3xx_ll_system.h"
93+
#include "stm32f3xx_ll_tim.h"
94+
#include "stm32f3xx_ll_usart.h"
95+
#include "stm32f3xx_ll_utils.h"
96+
#include "stm32f3xx_ll_wwdg.h"
97+
#endif
98+
#ifdef STM32F4xx
99+
#include "stm32f4xx_ll_adc.h"
100+
#include "stm32f4xx_ll_bus.h"
101+
#include "stm32f4xx_ll_cortex.h"
102+
#include "stm32f4xx_ll_crc.h"
103+
#include "stm32f4xx_ll_dac.h"
104+
#include "stm32f4xx_ll_dma.h"
105+
#include "stm32f4xx_ll_dma2d.h"
106+
#include "stm32f4xx_ll_exti.h"
107+
#include "stm32f4xx_ll_fmc.h"
108+
#include "stm32f4xx_ll_fsmc.h"
109+
#include "stm32f4xx_ll_gpio.h"
110+
#include "stm32f4xx_ll_i2c.h"
111+
#include "stm32f4xx_ll_iwdg.h"
112+
#include "stm32f4xx_ll_lptim.h"
113+
#include "stm32f4xx_ll_pwr.h"
114+
#include "stm32f4xx_ll_rcc.h"
115+
#include "stm32f4xx_ll_rng.h"
116+
#include "stm32f4xx_ll_rtc.h"
117+
#include "stm32f4xx_ll_sdmmc.h"
118+
#include "stm32f4xx_ll_spi.h"
119+
#include "stm32f4xx_ll_system.h"
120+
#include "stm32f4xx_ll_tim.h"
121+
#include "stm32f4xx_ll_usart.h"
122+
#include "stm32f4xx_ll_usb.h"
123+
#include "stm32f4xx_ll_utils.h"
124+
#include "stm32f4xx_ll_wwdg.h"
125+
#endif
126+
#ifdef STM32F7xx
127+
#include "stm32f7xx_ll_adc.h"
128+
#include "stm32f7xx_ll_bus.h"
129+
#include "stm32f7xx_ll_cortex.h"
130+
#include "stm32f7xx_ll_crc.h"
131+
#include "stm32f7xx_ll_dac.h"
132+
#include "stm32f7xx_ll_dma.h"
133+
#include "stm32f7xx_ll_dma2d.h"
134+
#include "stm32f7xx_ll_exti.h"
135+
#include "stm32f7xx_ll_fmc.h"
136+
#include "stm32f7xx_ll_gpio.h"
137+
#include "stm32f7xx_ll_i2c.h"
138+
#include "stm32f7xx_ll_iwdg.h"
139+
#include "stm32f7xx_ll_lptim.h"
140+
#include "stm32f7xx_ll_pwr.h"
141+
#include "stm32f7xx_ll_rcc.h"
142+
#include "stm32f7xx_ll_rng.h"
143+
#include "stm32f7xx_ll_rtc.h"
144+
#include "stm32f7xx_ll_sdmmc.h"
145+
#include "stm32f7xx_ll_spi.h"
146+
#include "stm32f7xx_ll_system.h"
147+
#include "stm32f7xx_ll_tim.h"
148+
#include "stm32f7xx_ll_usart.h"
149+
#include "stm32f7xx_ll_usb.h"
150+
#include "stm32f7xx_ll_utils.h"
151+
#include "stm32f7xx_ll_wwdg.h"
152+
#endif
153+
#ifdef STM32L0xx
154+
#include "stm32l0xx_ll_adc.h"
155+
#include "stm32l0xx_ll_bus.h"
156+
#include "stm32l0xx_ll_comp.h"
157+
#include "stm32l0xx_ll_cortex.h"
158+
#include "stm32l0xx_ll_crc.h"
159+
#include "stm32l0xx_ll_crs.h"
160+
#include "stm32l0xx_ll_dac.h"
161+
#include "stm32l0xx_ll_dma.h"
162+
#include "stm32l0xx_ll_exti.h"
163+
#include "stm32l0xx_ll_gpio.h"
164+
#include "stm32l0xx_ll_i2c.h"
165+
#include "stm32l0xx_ll_iwdg.h"
166+
#include "stm32l0xx_ll_lptim.h"
167+
#include "stm32l0xx_ll_lpuart.h"
168+
#include "stm32l0xx_ll_pwr.h"
169+
#include "stm32l0xx_ll_rcc.h"
170+
#include "stm32l0xx_ll_rng.h"
171+
#include "stm32l0xx_ll_rtc.h"
172+
#include "stm32l0xx_ll_spi.h"
173+
#include "stm32l0xx_ll_system.h"
174+
#include "stm32l0xx_ll_tim.h"
175+
#include "stm32l0xx_ll_usart.h"
176+
#include "stm32l0xx_ll_utils.h"
177+
#include "stm32l0xx_ll_wwdg.h"
178+
#endif
179+
#ifdef STM32L1xx
180+
#include "stm32l1xx_ll_adc.h"
181+
#include "stm32l1xx_ll_bus.h"
182+
#include "stm32l1xx_ll_comp.h"
183+
#include "stm32l1xx_ll_cortex.h"
184+
#include "stm32l1xx_ll_crc.h"
185+
#include "stm32l1xx_ll_dac.h"
186+
#include "stm32l1xx_ll_dma.h"
187+
#include "stm32l1xx_ll_exti.h"
188+
#include "stm32l1xx_ll_fsmc.h"
189+
#include "stm32l1xx_ll_gpio.h"
190+
#include "stm32l1xx_ll_i2c.h"
191+
#include "stm32l1xx_ll_iwdg.h"
192+
#include "stm32l1xx_ll_opamp.h"
193+
#include "stm32l1xx_ll_pwr.h"
194+
#include "stm32l1xx_ll_rcc.h"
195+
#include "stm32l1xx_ll_rtc.h"
196+
#include "stm32l1xx_ll_sdmmc.h"
197+
#include "stm32l1xx_ll_spi.h"
198+
#include "stm32l1xx_ll_system.h"
199+
#include "stm32l1xx_ll_tim.h"
200+
#include "stm32l1xx_ll_usart.h"
201+
#include "stm32l1xx_ll_utils.h"
202+
#include "stm32l1xx_ll_wwdg.h"
203+
#endif
204+
#ifdef STM32L4xx
205+
#include "stm32l4xx_ll_adc.h"
206+
#include "stm32l4xx_ll_bus.h"
207+
#include "stm32l4xx_ll_comp.h"
208+
#include "stm32l4xx_ll_cortex.h"
209+
#include "stm32l4xx_ll_crc.h"
210+
#include "stm32l4xx_ll_crs.h"
211+
#include "stm32l4xx_ll_dac.h"
212+
#include "stm32l4xx_ll_dma.h"
213+
#include "stm32l4xx_ll_dma2d.h"
214+
#include "stm32l4xx_ll_dmamux.h"
215+
#include "stm32l4xx_ll_exti.h"
216+
#include "stm32l4xx_ll_fmc.h"
217+
#include "stm32l4xx_ll_gpio.h"
218+
#include "stm32l4xx_ll_i2c.h"
219+
#include "stm32l4xx_ll_iwdg.h"
220+
#include "stm32l4xx_ll_lptim.h"
221+
#include "stm32l4xx_ll_lpuart.h"
222+
#include "stm32l4xx_ll_opamp.h"
223+
#include "stm32l4xx_ll_pwr.h"
224+
#include "stm32l4xx_ll_rcc.h"
225+
#include "stm32l4xx_ll_rng.h"
226+
#include "stm32l4xx_ll_rtc.h"
227+
#include "stm32l4xx_ll_sdmmc.h"
228+
#include "stm32l4xx_ll_spi.h"
229+
#include "stm32l4xx_ll_swpmi.h"
230+
#include "stm32l4xx_ll_system.h"
231+
#include "stm32l4xx_ll_tim.h"
232+
#include "stm32l4xx_ll_usart.h"
233+
#include "stm32l4xx_ll_usb.h"
234+
#include "stm32l4xx_ll_utils.h"
235+
#include "stm32l4xx_ll_wwdg.h"
236+
#endif

cores/arduino/stm32/stm32_def.h

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
#error "STM32YYxx chip series is not defined in boards.txt."
5151
#endif
5252

53+
// Include Low Layers drivers
54+
// LL raised several warnings, ignore them
55+
#pragma GCC diagnostic push
56+
#pragma GCC diagnostic ignored "-Wunused-parameter"
57+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
58+
#include "HAL/stm32yyxx_ll.h"
59+
#pragma GCC diagnostic pop
60+
5361
// Here define some compatibility
5462
#ifndef CAN1
5563
#define CAN1 CAN

0 commit comments

Comments
 (0)