stm32: Use STM32xx macros instead of MCU_SERIES_xx to select MCU type.
The CMSIS files for the STM32 range provide macros to distinguish between the different MCU series: STM32F4, STM32F7, STM32H7, STM32L4, etc. Prefer to use these instead of custom ones.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
STATIC const mp_obj_type_t machine_hard_i2c_type;
|
||||
|
||||
#if defined(MCU_SERIES_F4)
|
||||
#if defined(STM32F4)
|
||||
|
||||
// F4xx specific driver for I2C hardware peripheral
|
||||
// The hardware-specific I2C code below is based heavily on the code from
|
||||
|
||||
Reference in New Issue
Block a user