stm32/boards: Move includes to after defines in all hal_conf.h files.

The include of HAL headers should come after the HAL configuration defines,
so that the headers can see whether the defines were made or not, to
provide defaults and configure various things.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2023-09-28 16:24:45 +10:00
parent 08c661c930
commit 82b4ab7576
69 changed files with 418 additions and 425 deletions
ports/stm32/boards
ADAFRUIT_F405_EXPRESS
ARDUINO_GIGA
ARDUINO_NICLA_VISION
ARDUINO_PORTENTA_H7
B_L072Z_LRWAN1
B_L475E_IOT01A
CERB40
ESPRUINO_PICO
GARATRONIC_NADHAT_F405
GARATRONIC_PYBSTICK26_F411
HYDRABUS
LEGO_HUB_NO6
LEGO_HUB_NO7
LIMIFROG
MIKROE_CLICKER2_STM32
MIKROE_QUAIL
NETDUINO_PLUS_2
NUCLEO_F091RC
NUCLEO_F401RE
NUCLEO_F411RE
NUCLEO_F412ZG
NUCLEO_F413ZH
NUCLEO_F429ZI
NUCLEO_F439ZI
NUCLEO_F446RE
NUCLEO_F722ZE
NUCLEO_F746ZG
NUCLEO_F756ZG
NUCLEO_F767ZI
NUCLEO_G474RE
NUCLEO_H723ZG
NUCLEO_H743ZI
NUCLEO_L073RZ
NUCLEO_L432KC
NUCLEO_L452RE
NUCLEO_L476RG
NUCLEO_L4A6ZG
OLIMEX_E407
OLIMEX_H407
PYBD_SF2
PYBLITEV10
PYBV10
PYBV11
PYBV3
PYBV4
SPARKFUN_MICROMOD_STM32
STM32F411DISC
STM32F429DISC
STM32F439
STM32F4DISC
STM32F769DISC
STM32F7DISC
STM32H573I_DK
STM32H7B3I_DK
STM32L476DISC
STM32L496GDISC
VCC_GND_F407VE
VCC_GND_F407ZG
VCC_GND_H743VI
stm32f0xx_hal_conf_base.hstm32f4xx_hal_conf_base.hstm32f7xx_hal_conf_base.hstm32g4xx_hal_conf_base.hstm32h7xx_hal_conf_base.hstm32l0xx_hal_conf_base.hstm32l1xx_hal_conf_base.hstm32l4xx_hal_conf_base.hstm32wbxx_hal_conf_base.hstm32wlxx_hal_conf_base.h

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (16000000)
#define LSE_VALUE (32768)
@ -48,4 +46,6 @@
#include "stm32h7xx_hal_mmc.h"
#endif
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -48,4 +46,6 @@
#include "stm32h7xx_hal_mmc.h"
#endif
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -48,4 +46,6 @@
#include "stm32h7xx_hal_mmc.h"
#endif
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H
#include "boards/stm32l0xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -15,4 +13,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l0xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (16000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (16000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (16000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,10 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
#include "stm32f4xx_hal_fmpi2c.h"
#define HAL_FMPI2C_MODULE_ENABLED
// Oscillator values in Hz
@ -20,4 +16,7 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#include "stm32f4xx_hal_fmpi2c.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define EXTERNAL_CLOCK_VALUE (12288000)
@ -15,4 +13,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (0)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F0XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F0XX_HAL_CONF_H
#include "boards/stm32f0xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -15,4 +13,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f0xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F0XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -4,8 +4,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -15,4 +13,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32G4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32G4XX_HAL_CONF_H
#include "boards/stm32g4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (24000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32g4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32G4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H
#include "boards/stm32l0xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -15,4 +13,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l0xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L0XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (12000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H
#include "boards/stm32f7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F7XX_HAL_CONF_H

@ -10,10 +10,10 @@
#define LSE_VALUE (32768)
#define EXTERNAL_CLOCK_VALUE (12288000)
#include "boards/stm32h5xx_hal_conf_base.h"
// Oscillator timeouts in ms
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32h5xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H5XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (24000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H
#include "boards/stm32l4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (8000000)
#define LSE_VALUE (32768)
@ -17,4 +15,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32l4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32L4XX_HAL_CONF_H

@ -1,8 +1,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -12,4 +10,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -1,8 +1,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H
#include "boards/stm32f4xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -12,4 +10,6 @@
#define HSE_STARTUP_TIMEOUT (100)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32f4xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32F4XX_HAL_CONF_H

@ -5,8 +5,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H
#include "boards/stm32h7xx_hal_conf_base.h"
// Oscillator values in Hz
#define HSE_VALUE (25000000)
#define LSE_VALUE (32768)
@ -16,4 +14,6 @@
#define HSE_STARTUP_TIMEOUT (5000)
#define LSE_STARTUP_TIMEOUT (5000)
#include "boards/stm32h7xx_hal_conf_base.h"
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_H

@ -26,31 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32F0XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32F0XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32f0xx_hal_dma.h"
#include "stm32f0xx_hal_adc.h"
#include "stm32f0xx_hal_can.h"
#include "stm32f0xx_hal_cortex.h"
#include "stm32f0xx_hal_crc.h"
#include "stm32f0xx_hal_dac.h"
#include "stm32f0xx_hal_flash.h"
#include "stm32f0xx_hal_gpio.h"
#include "stm32f0xx_hal_i2c.h"
#include "stm32f0xx_hal_i2s.h"
#include "stm32f0xx_hal_iwdg.h"
#include "stm32f0xx_hal_pcd.h"
#include "stm32f0xx_hal_pwr.h"
#include "stm32f0xx_hal_rcc.h"
#include "stm32f0xx_hal_rtc.h"
#include "stm32f0xx_hal_spi.h"
#include "stm32f0xx_hal_tim.h"
#include "stm32f0xx_hal_uart.h"
#include "stm32f0xx_hal_usart.h"
#include "stm32f0xx_hal_wwdg.h"
#include "stm32f0xx_ll_adc.h"
#include "stm32f0xx_ll_rtc.h"
#include "stm32f0xx_ll_usart.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
@ -87,6 +62,31 @@
#define USE_RTOS 0
#define USE_SPI_CRC 1
// Include various HAL modules for convenience
#include "stm32f0xx_hal_dma.h"
#include "stm32f0xx_hal_adc.h"
#include "stm32f0xx_hal_can.h"
#include "stm32f0xx_hal_cortex.h"
#include "stm32f0xx_hal_crc.h"
#include "stm32f0xx_hal_dac.h"
#include "stm32f0xx_hal_flash.h"
#include "stm32f0xx_hal_gpio.h"
#include "stm32f0xx_hal_i2c.h"
#include "stm32f0xx_hal_i2s.h"
#include "stm32f0xx_hal_iwdg.h"
#include "stm32f0xx_hal_pcd.h"
#include "stm32f0xx_hal_pwr.h"
#include "stm32f0xx_hal_rcc.h"
#include "stm32f0xx_hal_rtc.h"
#include "stm32f0xx_hal_spi.h"
#include "stm32f0xx_hal_tim.h"
#include "stm32f0xx_hal_uart.h"
#include "stm32f0xx_hal_usart.h"
#include "stm32f0xx_hal_wwdg.h"
#include "stm32f0xx_ll_adc.h"
#include "stm32f0xx_ll_rtc.h"
#include "stm32f0xx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,39 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32F4XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32F4XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32f4xx_hal_dma.h"
#include "stm32f4xx_hal_adc.h"
#include "stm32f4xx_hal_can.h"
#include "stm32f4xx_hal_cortex.h"
#include "stm32f4xx_hal_crc.h"
#include "stm32f4xx_hal_dac.h"
#include "stm32f4xx_hal_dcmi.h"
#include "stm32f4xx_hal_eth.h"
#include "stm32f4xx_hal_flash.h"
#include "stm32f4xx_hal_gpio.h"
#include "stm32f4xx_hal_hash.h"
#include "stm32f4xx_hal_hcd.h"
#include "stm32f4xx_hal_i2c.h"
#include "stm32f4xx_hal_i2s.h"
#include "stm32f4xx_hal_iwdg.h"
#include "stm32f4xx_hal_mmc.h"
#include "stm32f4xx_hal_pcd.h"
#include "stm32f4xx_hal_pwr.h"
#include "stm32f4xx_hal_rcc.h"
#include "stm32f4xx_hal_rtc.h"
#include "stm32f4xx_hal_sd.h"
#include "stm32f4xx_hal_sdram.h"
#include "stm32f4xx_hal_spi.h"
#include "stm32f4xx_hal_tim.h"
#include "stm32f4xx_hal_uart.h"
#include "stm32f4xx_hal_usart.h"
#include "stm32f4xx_hal_wwdg.h"
#include "stm32f4xx_ll_adc.h"
#include "stm32f4xx_ll_pwr.h"
#include "stm32f4xx_ll_rtc.h"
#include "stm32f4xx_ll_usart.h"
// Enable various HAL modules
#define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_MODULE_ENABLED
@ -101,6 +68,39 @@
#define PREFETCH_ENABLE 1
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32f4xx_hal_dma.h"
#include "stm32f4xx_hal_adc.h"
#include "stm32f4xx_hal_can.h"
#include "stm32f4xx_hal_cortex.h"
#include "stm32f4xx_hal_crc.h"
#include "stm32f4xx_hal_dac.h"
#include "stm32f4xx_hal_dcmi.h"
#include "stm32f4xx_hal_eth.h"
#include "stm32f4xx_hal_flash.h"
#include "stm32f4xx_hal_gpio.h"
#include "stm32f4xx_hal_hash.h"
#include "stm32f4xx_hal_hcd.h"
#include "stm32f4xx_hal_i2c.h"
#include "stm32f4xx_hal_i2s.h"
#include "stm32f4xx_hal_iwdg.h"
#include "stm32f4xx_hal_mmc.h"
#include "stm32f4xx_hal_pcd.h"
#include "stm32f4xx_hal_pwr.h"
#include "stm32f4xx_hal_rcc.h"
#include "stm32f4xx_hal_rtc.h"
#include "stm32f4xx_hal_sd.h"
#include "stm32f4xx_hal_sdram.h"
#include "stm32f4xx_hal_spi.h"
#include "stm32f4xx_hal_tim.h"
#include "stm32f4xx_hal_uart.h"
#include "stm32f4xx_hal_usart.h"
#include "stm32f4xx_hal_wwdg.h"
#include "stm32f4xx_ll_adc.h"
#include "stm32f4xx_ll_pwr.h"
#include "stm32f4xx_ll_rtc.h"
#include "stm32f4xx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,38 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32F7XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32F7XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32f7xx_hal_dma.h"
#include "stm32f7xx_hal_adc.h"
#include "stm32f7xx_hal_can.h"
#include "stm32f7xx_hal_cortex.h"
#include "stm32f7xx_hal_crc.h"
#include "stm32f7xx_hal_dac.h"
#include "stm32f7xx_hal_dcmi.h"
#include "stm32f7xx_hal_flash.h"
#include "stm32f7xx_hal_gpio.h"
#include "stm32f7xx_hal_hash.h"
#include "stm32f7xx_hal_hcd.h"
#include "stm32f7xx_hal_i2c.h"
#include "stm32f7xx_hal_i2s.h"
#include "stm32f7xx_hal_iwdg.h"
#include "stm32f7xx_hal_mmc.h"
#include "stm32f7xx_hal_pcd.h"
#include "stm32f7xx_hal_pwr.h"
#include "stm32f7xx_hal_rcc.h"
#include "stm32f7xx_hal_rtc.h"
#include "stm32f7xx_hal_sd.h"
#include "stm32f7xx_hal_sdram.h"
#include "stm32f7xx_hal_spi.h"
#include "stm32f7xx_hal_tim.h"
#include "stm32f7xx_hal_uart.h"
#include "stm32f7xx_hal_usart.h"
#include "stm32f7xx_hal_wwdg.h"
#include "stm32f7xx_ll_adc.h"
#include "stm32f7xx_ll_pwr.h"
#include "stm32f7xx_ll_rtc.h"
#include "stm32f7xx_ll_usart.h"
// Enable various HAL modules
#define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_MODULE_ENABLED
@ -97,6 +65,38 @@
#define ART_ACCLERATOR_ENABLE 1
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32f7xx_hal_dma.h"
#include "stm32f7xx_hal_adc.h"
#include "stm32f7xx_hal_can.h"
#include "stm32f7xx_hal_cortex.h"
#include "stm32f7xx_hal_crc.h"
#include "stm32f7xx_hal_dac.h"
#include "stm32f7xx_hal_dcmi.h"
#include "stm32f7xx_hal_flash.h"
#include "stm32f7xx_hal_gpio.h"
#include "stm32f7xx_hal_hash.h"
#include "stm32f7xx_hal_hcd.h"
#include "stm32f7xx_hal_i2c.h"
#include "stm32f7xx_hal_i2s.h"
#include "stm32f7xx_hal_iwdg.h"
#include "stm32f7xx_hal_mmc.h"
#include "stm32f7xx_hal_pcd.h"
#include "stm32f7xx_hal_pwr.h"
#include "stm32f7xx_hal_rcc.h"
#include "stm32f7xx_hal_rtc.h"
#include "stm32f7xx_hal_sd.h"
#include "stm32f7xx_hal_sdram.h"
#include "stm32f7xx_hal_spi.h"
#include "stm32f7xx_hal_tim.h"
#include "stm32f7xx_hal_uart.h"
#include "stm32f7xx_hal_usart.h"
#include "stm32f7xx_hal_wwdg.h"
#include "stm32f7xx_ll_adc.h"
#include "stm32f7xx_ll_pwr.h"
#include "stm32f7xx_ll_rtc.h"
#include "stm32f7xx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,51 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32G4XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32G4XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32g4xx_hal_rcc.h"
#include "stm32g4xx_hal_gpio.h"
#include "stm32g4xx_hal_dma.h"
#include "stm32g4xx_hal_cortex.h"
#include "stm32g4xx_hal_adc.h"
#include "stm32g4xx_hal_comp.h"
#include "stm32g4xx_hal_cordic.h"
#include "stm32g4xx_hal_crc.h"
#include "stm32g4xx_hal_cryp.h"
#include "stm32g4xx_hal_dac.h"
#include "stm32g4xx_hal_exti.h"
#include "stm32g4xx_hal_fdcan.h"
#include "stm32g4xx_hal_flash.h"
#include "stm32g4xx_hal_fmac.h"
#include "stm32g4xx_hal_hrtim.h"
#include "stm32g4xx_hal_irda.h"
#include "stm32g4xx_hal_iwdg.h"
#include "stm32g4xx_hal_i2c.h"
#include "stm32g4xx_hal_i2s.h"
#include "stm32g4xx_hal_lptim.h"
#include "stm32g4xx_hal_nand.h"
#include "stm32g4xx_hal_nor.h"
#include "stm32g4xx_hal_opamp.h"
#include "stm32g4xx_hal_pcd.h"
#include "stm32g4xx_hal_pwr.h"
#include "stm32g4xx_hal_qspi.h"
#include "stm32g4xx_hal_rng.h"
#include "stm32g4xx_hal_rtc.h"
#include "stm32g4xx_hal_sai.h"
#include "stm32g4xx_hal_smartcard.h"
#include "stm32g4xx_hal_smbus.h"
#include "stm32g4xx_hal_spi.h"
#include "stm32g4xx_hal_sram.h"
#include "stm32g4xx_hal_tim.h"
#include "stm32g4xx_hal_uart.h"
#include "stm32g4xx_hal_usart.h"
#include "stm32g4xx_hal_wwdg.h"
#include "stm32g4xx_ll_adc.h"
#include "stm32g4xx_ll_rtc.h"
#include "stm32g4xx_ll_usart.h"
#include "stm32g4xx_ll_lpuart.h"
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
#define HAL_COMP_MODULE_ENABLED
@ -125,6 +80,49 @@
#define DATA_CACHE_ENABLE 1
#define USE_SPI_CRC 1
// Include various HAL modules for convenience
#include "stm32g4xx_hal_rcc.h"
#include "stm32g4xx_hal_gpio.h"
#include "stm32g4xx_hal_dma.h"
#include "stm32g4xx_hal_cortex.h"
#include "stm32g4xx_hal_adc.h"
#include "stm32g4xx_hal_comp.h"
#include "stm32g4xx_hal_cordic.h"
#include "stm32g4xx_hal_crc.h"
#include "stm32g4xx_hal_cryp.h"
#include "stm32g4xx_hal_dac.h"
#include "stm32g4xx_hal_exti.h"
#include "stm32g4xx_hal_fdcan.h"
#include "stm32g4xx_hal_flash.h"
#include "stm32g4xx_hal_fmac.h"
#include "stm32g4xx_hal_hrtim.h"
#include "stm32g4xx_hal_irda.h"
#include "stm32g4xx_hal_iwdg.h"
#include "stm32g4xx_hal_i2c.h"
#include "stm32g4xx_hal_i2s.h"
#include "stm32g4xx_hal_lptim.h"
#include "stm32g4xx_hal_nand.h"
#include "stm32g4xx_hal_nor.h"
#include "stm32g4xx_hal_opamp.h"
#include "stm32g4xx_hal_pcd.h"
#include "stm32g4xx_hal_pwr.h"
#include "stm32g4xx_hal_qspi.h"
#include "stm32g4xx_hal_rng.h"
#include "stm32g4xx_hal_rtc.h"
#include "stm32g4xx_hal_sai.h"
#include "stm32g4xx_hal_smartcard.h"
#include "stm32g4xx_hal_smbus.h"
#include "stm32g4xx_hal_spi.h"
#include "stm32g4xx_hal_sram.h"
#include "stm32g4xx_hal_tim.h"
#include "stm32g4xx_hal_uart.h"
#include "stm32g4xx_hal_usart.h"
#include "stm32g4xx_hal_wwdg.h"
#include "stm32g4xx_ll_adc.h"
#include "stm32g4xx_ll_rtc.h"
#include "stm32g4xx_ll_usart.h"
#include "stm32g4xx_ll_lpuart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,39 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32H7XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32H7XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32h7xx_hal_dma.h"
#include "stm32h7xx_hal_mdma.h"
#include "stm32h7xx_hal_adc.h"
#include "stm32h7xx_hal_cortex.h"
#include "stm32h7xx_hal_crc.h"
#include "stm32h7xx_hal_dac.h"
#include "stm32h7xx_hal_dcmi.h"
#include "stm32h7xx_hal_fdcan.h"
#include "stm32h7xx_hal_flash.h"
#include "stm32h7xx_hal_gpio.h"
#include "stm32h7xx_hal_hash.h"
#include "stm32h7xx_hal_hcd.h"
#include "stm32h7xx_hal_i2c.h"
#include "stm32h7xx_hal_i2s.h"
#include "stm32h7xx_hal_iwdg.h"
#include "stm32h7xx_hal_pcd.h"
#include "stm32h7xx_hal_pwr.h"
#include "stm32h7xx_hal_rcc.h"
#include "stm32h7xx_hal_rtc.h"
#include "stm32h7xx_hal_sd.h"
#include "stm32h7xx_hal_sdram.h"
#include "stm32h7xx_hal_spi.h"
#include "stm32h7xx_hal_tim.h"
#include "stm32h7xx_hal_uart.h"
#include "stm32h7xx_hal_usart.h"
#include "stm32h7xx_hal_wwdg.h"
#include "stm32h7xx_ll_adc.h"
#include "stm32h7xx_ll_lpuart.h"
#include "stm32h7xx_ll_pwr.h"
#include "stm32h7xx_ll_rtc.h"
#include "stm32h7xx_ll_usart.h"
// Enable various HAL modules
#define HAL_ADC_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
@ -98,6 +65,39 @@
#define USE_SD_TRANSCEIVER 0
#define USE_SPI_CRC 1
// Include various HAL modules for convenience
#include "stm32h7xx_hal_dma.h"
#include "stm32h7xx_hal_mdma.h"
#include "stm32h7xx_hal_adc.h"
#include "stm32h7xx_hal_cortex.h"
#include "stm32h7xx_hal_crc.h"
#include "stm32h7xx_hal_dac.h"
#include "stm32h7xx_hal_dcmi.h"
#include "stm32h7xx_hal_fdcan.h"
#include "stm32h7xx_hal_flash.h"
#include "stm32h7xx_hal_gpio.h"
#include "stm32h7xx_hal_hash.h"
#include "stm32h7xx_hal_hcd.h"
#include "stm32h7xx_hal_i2c.h"
#include "stm32h7xx_hal_i2s.h"
#include "stm32h7xx_hal_iwdg.h"
#include "stm32h7xx_hal_pcd.h"
#include "stm32h7xx_hal_pwr.h"
#include "stm32h7xx_hal_rcc.h"
#include "stm32h7xx_hal_rtc.h"
#include "stm32h7xx_hal_sd.h"
#include "stm32h7xx_hal_sdram.h"
#include "stm32h7xx_hal_spi.h"
#include "stm32h7xx_hal_tim.h"
#include "stm32h7xx_hal_uart.h"
#include "stm32h7xx_hal_usart.h"
#include "stm32h7xx_hal_wwdg.h"
#include "stm32h7xx_ll_adc.h"
#include "stm32h7xx_ll_lpuart.h"
#include "stm32h7xx_ll_pwr.h"
#include "stm32h7xx_ll_rtc.h"
#include "stm32h7xx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,31 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32L0XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32L0XX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32l0xx_hal_dma.h"
#include "stm32l0xx_hal_adc.h"
#include "stm32l0xx_hal_cortex.h"
#include "stm32l0xx_hal_crc.h"
#include "stm32l0xx_hal_dac.h"
#include "stm32l0xx_hal_flash.h"
#include "stm32l0xx_hal_gpio.h"
#include "stm32l0xx_hal_i2c.h"
#include "stm32l0xx_hal_i2s.h"
#include "stm32l0xx_hal_iwdg.h"
#include "stm32l0xx_hal_pcd.h"
#include "stm32l0xx_hal_pwr.h"
#include "stm32l0xx_hal_rcc.h"
#include "stm32l0xx_hal_rtc.h"
#include "stm32l0xx_hal_spi.h"
#include "stm32l0xx_hal_tim.h"
#include "stm32l0xx_hal_uart.h"
#include "stm32l0xx_hal_usart.h"
#include "stm32l0xx_hal_wwdg.h"
#include "stm32l0xx_ll_adc.h"
#include "stm32l0xx_ll_lpuart.h"
#include "stm32l0xx_ll_rtc.h"
#include "stm32l0xx_ll_usart.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
@ -89,6 +64,31 @@
#define USE_RTOS 0
#define USE_SPI_CRC 0
// Include various HAL modules for convenience
#include "stm32l0xx_hal_dma.h"
#include "stm32l0xx_hal_adc.h"
#include "stm32l0xx_hal_cortex.h"
#include "stm32l0xx_hal_crc.h"
#include "stm32l0xx_hal_dac.h"
#include "stm32l0xx_hal_flash.h"
#include "stm32l0xx_hal_gpio.h"
#include "stm32l0xx_hal_i2c.h"
#include "stm32l0xx_hal_i2s.h"
#include "stm32l0xx_hal_iwdg.h"
#include "stm32l0xx_hal_pcd.h"
#include "stm32l0xx_hal_pwr.h"
#include "stm32l0xx_hal_rcc.h"
#include "stm32l0xx_hal_rtc.h"
#include "stm32l0xx_hal_spi.h"
#include "stm32l0xx_hal_tim.h"
#include "stm32l0xx_hal_uart.h"
#include "stm32l0xx_hal_usart.h"
#include "stm32l0xx_hal_wwdg.h"
#include "stm32l0xx_ll_adc.h"
#include "stm32l0xx_ll_lpuart.h"
#include "stm32l0xx_ll_rtc.h"
#include "stm32l0xx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,36 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32L1XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32L1XX_HAL_CONF_BASE_H
// Needs to be defined before ll_usb.h is included
#define HAL_PCD_MODULE_ENABLED
// Include various HAL modules for convenience
#include "stm32l1xx_hal_rcc.h"
#include "stm32l1xx_hal_gpio.h"
#include "stm32l1xx_hal_dma.h"
#include "stm32l1xx_hal_cortex.h"
#include "stm32l1xx_hal_adc.h"
#include "stm32l1xx_hal_comp.h"
#include "stm32l1xx_hal_crc.h"
#include "stm32l1xx_hal_dac.h"
#include "stm32l1xx_hal_flash.h"
#include "stm32l1xx_hal_i2c.h"
#include "stm32l1xx_hal_iwdg.h"
#include "stm32l1xx_hal_pcd.h"
#include "stm32l1xx_hal_pwr.h"
#include "stm32l1xx_hal_rtc.h"
#include "stm32l1xx_hal_spi.h"
#include "stm32l1xx_hal_tim.h"
#include "stm32l1xx_hal_uart.h"
#include "stm32l1xx_hal_usart.h"
#include "stm32l1xx_hal_wwdg.h"
#include "stm32l1xx_hal_exti.h"
#include "stm32l1xx_ll_adc.h"
#include "stm32l1xx_ll_pwr.h"
#include "stm32l1xx_ll_rtc.h"
#include "stm32l1xx_ll_usart.h"
#include "stm32l1xx_ll_usb.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
@ -67,6 +37,7 @@
#define HAL_FLASH_MODULE_ENABLED
#define HAL_GPIO_MODULE_ENABLED
#define HAL_I2C_MODULE_ENABLED
#define HAL_PCD_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RTC_MODULE_ENABLED
@ -98,6 +69,33 @@
#define USE_SPI_CRC 0
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32l1xx_hal_rcc.h"
#include "stm32l1xx_hal_gpio.h"
#include "stm32l1xx_hal_dma.h"
#include "stm32l1xx_hal_cortex.h"
#include "stm32l1xx_hal_adc.h"
#include "stm32l1xx_hal_comp.h"
#include "stm32l1xx_hal_crc.h"
#include "stm32l1xx_hal_dac.h"
#include "stm32l1xx_hal_flash.h"
#include "stm32l1xx_hal_i2c.h"
#include "stm32l1xx_hal_iwdg.h"
#include "stm32l1xx_hal_pcd.h"
#include "stm32l1xx_hal_pwr.h"
#include "stm32l1xx_hal_rtc.h"
#include "stm32l1xx_hal_spi.h"
#include "stm32l1xx_hal_tim.h"
#include "stm32l1xx_hal_uart.h"
#include "stm32l1xx_hal_usart.h"
#include "stm32l1xx_hal_wwdg.h"
#include "stm32l1xx_hal_exti.h"
#include "stm32l1xx_ll_adc.h"
#include "stm32l1xx_ll_pwr.h"
#include "stm32l1xx_ll_rtc.h"
#include "stm32l1xx_ll_usart.h"
#include "stm32l1xx_ll_usb.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,8 +26,47 @@
#ifndef MICROPY_INCLUDED_STM32L4XX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32L4XX_HAL_CONF_BASE_H
// Needs to be defined before ll_usb.h is included
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_LEGACY_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
#define HAL_CRC_MODULE_ENABLED
#define HAL_DAC_MODULE_ENABLED
#define HAL_DCMI_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
#define HAL_FLASH_MODULE_ENABLED
#define HAL_GPIO_MODULE_ENABLED
#define HAL_HASH_MODULE_ENABLED
#define HAL_HCD_MODULE_ENABLED
#define HAL_I2C_MODULE_ENABLED
#define HAL_IWDG_MODULE_ENABLED
#define HAL_PCD_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RTC_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED
#define HAL_USART_MODULE_ENABLED
#define HAL_WWDG_MODULE_ENABLED
// Oscillator values in Hz
#define HSI_VALUE (16000000)
#define HSI48_VALUE (48000000)
#define LSI_VALUE (32000)
#define MSI_VALUE (4000000)
// SysTick has the highest priority
#define TICK_INT_PRIORITY (0x00)
// Miscellaneous HAL settings
#define DATA_CACHE_ENABLE 1
#define INSTRUCTION_CACHE_ENABLE 1
#define PREFETCH_ENABLE 1
#define USE_SPI_CRC 0
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32l4xx_hal_dma.h"
@ -59,47 +98,6 @@
#include "stm32l4xx_ll_usart.h"
#include "stm32l4xx_ll_usb.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
#define HAL_CAN_LEGACY_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
#define HAL_CRC_MODULE_ENABLED
#define HAL_DAC_MODULE_ENABLED
#define HAL_DCMI_MODULE_ENABLED
#define HAL_DMA_MODULE_ENABLED
#define HAL_FLASH_MODULE_ENABLED
#define HAL_GPIO_MODULE_ENABLED
#define HAL_HASH_MODULE_ENABLED
#define HAL_HCD_MODULE_ENABLED
#define HAL_I2C_MODULE_ENABLED
#define HAL_IWDG_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
#define HAL_RCC_MODULE_ENABLED
#define HAL_RTC_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIM_MODULE_ENABLED
#define HAL_UART_MODULE_ENABLED
#define HAL_USART_MODULE_ENABLED
#define HAL_WWDG_MODULE_ENABLED
// Oscillator values in Hz
#define HSI_VALUE (16000000)
#define HSI48_VALUE (48000000)
#define LSI_VALUE (32000)
#define MSI_VALUE (4000000)
// SysTick has the highest priority
#define TICK_INT_PRIORITY (0x00)
// Miscellaneous HAL settings
#define DATA_CACHE_ENABLE 1
#define INSTRUCTION_CACHE_ENABLE 1
#define PREFETCH_ENABLE 1
#define USE_SPI_CRC 0
#define USE_RTOS 0
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,27 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32WBXX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32WBXX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32wbxx_hal_dma.h"
#include "stm32wbxx_hal_adc.h"
#include "stm32wbxx_hal_cortex.h"
#include "stm32wbxx_hal_flash.h"
#include "stm32wbxx_hal_gpio.h"
#include "stm32wbxx_hal_i2c.h"
#include "stm32wbxx_hal_pcd.h"
#include "stm32wbxx_hal_pwr.h"
#include "stm32wbxx_hal_rcc.h"
#include "stm32wbxx_hal_rtc.h"
#include "stm32wbxx_hal_spi.h"
#include "stm32wbxx_hal_tim.h"
#include "stm32wbxx_hal_uart.h"
#include "stm32wbxx_hal_usart.h"
#include "stm32wbxx_ll_adc.h"
#include "stm32wbxx_ll_hsem.h"
#include "stm32wbxx_ll_lpuart.h"
#include "stm32wbxx_ll_rtc.h"
#include "stm32wbxx_ll_usart.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_ADC_MODULE_ENABLED
@ -77,6 +56,27 @@
#define USE_SPI_CRC 0
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32wbxx_hal_dma.h"
#include "stm32wbxx_hal_adc.h"
#include "stm32wbxx_hal_cortex.h"
#include "stm32wbxx_hal_flash.h"
#include "stm32wbxx_hal_gpio.h"
#include "stm32wbxx_hal_i2c.h"
#include "stm32wbxx_hal_pcd.h"
#include "stm32wbxx_hal_pwr.h"
#include "stm32wbxx_hal_rcc.h"
#include "stm32wbxx_hal_rtc.h"
#include "stm32wbxx_hal_spi.h"
#include "stm32wbxx_hal_tim.h"
#include "stm32wbxx_hal_uart.h"
#include "stm32wbxx_hal_usart.h"
#include "stm32wbxx_ll_adc.h"
#include "stm32wbxx_ll_hsem.h"
#include "stm32wbxx_ll_lpuart.h"
#include "stm32wbxx_ll_rtc.h"
#include "stm32wbxx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)

@ -26,25 +26,6 @@
#ifndef MICROPY_INCLUDED_STM32WLXX_HAL_CONF_BASE_H
#define MICROPY_INCLUDED_STM32WLXX_HAL_CONF_BASE_H
// Include various HAL modules for convenience
#include "stm32wlxx_hal_dma.h"
#include "stm32wlxx_hal_adc.h"
#include "stm32wlxx_hal_cortex.h"
#include "stm32wlxx_hal_flash.h"
#include "stm32wlxx_hal_gpio.h"
#include "stm32wlxx_hal_i2c.h"
#include "stm32wlxx_hal_pwr.h"
#include "stm32wlxx_hal_rcc.h"
#include "stm32wlxx_hal_rtc.h"
#include "stm32wlxx_hal_spi.h"
#include "stm32wlxx_hal_tim.h"
#include "stm32wlxx_hal_uart.h"
#include "stm32wlxx_hal_usart.h"
#include "stm32wlxx_ll_adc.h"
#include "stm32wlxx_ll_lpuart.h"
#include "stm32wlxx_ll_rtc.h"
#include "stm32wlxx_ll_usart.h"
// Enable various HAL modules
#define HAL_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED
@ -72,6 +53,25 @@
#define USE_SPI_CRC 0
#define USE_RTOS 0
// Include various HAL modules for convenience
#include "stm32wlxx_hal_dma.h"
#include "stm32wlxx_hal_adc.h"
#include "stm32wlxx_hal_cortex.h"
#include "stm32wlxx_hal_flash.h"
#include "stm32wlxx_hal_gpio.h"
#include "stm32wlxx_hal_i2c.h"
#include "stm32wlxx_hal_pwr.h"
#include "stm32wlxx_hal_rcc.h"
#include "stm32wlxx_hal_rtc.h"
#include "stm32wlxx_hal_spi.h"
#include "stm32wlxx_hal_tim.h"
#include "stm32wlxx_hal_uart.h"
#include "stm32wlxx_hal_usart.h"
#include "stm32wlxx_ll_adc.h"
#include "stm32wlxx_ll_lpuart.h"
#include "stm32wlxx_ll_rtc.h"
#include "stm32wlxx_ll_usart.h"
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)