Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
ea8bf810
Commit
ea8bf810
authored
Jul 28, 2015
by
Dave Hylands
Committed by
Damien George
Jul 30, 2015
Browse files
stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.
parent
f243851c
Changes
26
Hide whitespace changes
Inline
Side-by-side
stmhal/Makefile
View file @
ea8bf810
...
...
@@ -47,6 +47,7 @@ INC += -I../lib/timeutils
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mfpu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
CFLAGS
=
$(INC)
-Wall
-Wpointer-arith
-Werror
-ansi
-std
=
gnu99
-nostdlib
$(CFLAGS_MOD)
$(CFLAGS_CORTEX_M4)
$(COPT)
CFLAGS
+=
-Iboards
/
$(BOARD)
CFLAGS
+=
-DSTM32_HAL_H
=
'<stm32
$(MCU_SERIES)
xx_hal.h>'
LDFLAGS
=
-nostdlib
-T
$(LD_FILE)
-Map
=
$
(
@:.elf
=
.map
)
--cref
LIBS
=
...
...
stmhal/accel.c
View file @
ea8bf810
...
...
@@ -27,7 +27,7 @@
#include
<stdio.h>
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/adc.c
View file @
ea8bf810
...
...
@@ -25,7 +25,7 @@
*/
#include
<stdio.h>
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
<string.h>
#include
"py/nlr.h"
...
...
stmhal/dac.c
View file @
ea8bf810
...
...
@@ -28,7 +28,7 @@
#include
<stdint.h>
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/diskio.c
View file @
ea8bf810
...
...
@@ -30,7 +30,7 @@
#include
<stdint.h>
#include
<stdio.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/runtime.h"
#include
"lib/fatfs/ff.h"
/* FatFs lower layer API */
...
...
stmhal/dma.c
View file @
ea8bf810
...
...
@@ -27,7 +27,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<stdint.h>
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"dma.h"
...
...
stmhal/flash.c
View file @
ea8bf810
...
...
@@ -24,7 +24,7 @@
* THE SOFTWARE.
*/
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"flash.h"
...
...
stmhal/lcd.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/led.c
View file @
ea8bf810
...
...
@@ -25,7 +25,7 @@
*/
#include
<stdio.h>
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/modpyb.c
View file @
ea8bf810
...
...
@@ -27,7 +27,7 @@
#include
<stdint.h>
#include
<stdio.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/mpstate.h"
#include
"py/nlr.h"
...
...
stmhal/modstm.c
View file @
ea8bf810
...
...
@@ -27,7 +27,7 @@
#include
<stdio.h>
#include
<stdint.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/obj.h"
...
...
stmhal/modutime.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
#include
<stdio.h>
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/obj.h"
...
...
stmhal/mpconfigport.h
View file @
ea8bf810
...
...
@@ -200,7 +200,7 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len);
// value from disable_irq back to enable_irq. If you really need
// to know the machine-specific values, see irq.h.
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
static
inline
void
enable_irq
(
mp_uint_t
state
)
{
__set_PRIMASK
(
state
);
...
...
stmhal/mphal.h
View file @
ea8bf810
// We use the ST Cube HAL library for most hardware peripherals
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
// Basic GPIO functions
#define GPIO_read_pin(gpio, pin) (((gpio)->IDR >> (pin)) & 1)
...
...
stmhal/pendsv.c
View file @
ea8bf810
...
...
@@ -25,7 +25,7 @@
*/
#include
<stdlib.h>
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"py/mpstate.h"
#include
"py/runtime.h"
...
...
stmhal/rng.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
#include
<string.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/obj.h"
#include
"rng.h"
...
...
stmhal/rtc.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
#include
<stdio.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/runtime.h"
#include
"rtc.h"
...
...
stmhal/sdcard.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
// TODO make it work with DMA
#include
<stm32f4xx_hal.h>
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/servo.c
View file @
ea8bf810
...
...
@@ -26,7 +26,7 @@
#include
<stdio.h>
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/nlr.h"
#include
"py/runtime.h"
...
...
stmhal/stm32f4xx_it.c
View file @
ea8bf810
...
...
@@ -68,7 +68,7 @@
#include
<stdio.h>
#include
"stm32f4xx_it.h"
#include
"stm32f4xx_hal.h"
#include
STM32_HAL_H
#include
"py/obj.h"
#include
"pendsv.h"
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment