diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-03-17 10:42:50 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-03-17 10:42:50 +1100 |
| commit | e37b8ba5a55c99dbd1e69eb1c99651307b22fd3e (patch) | |
| tree | 41800ba58b24830bd8033274dadd7b189e4a621d /ports/stm32/dma.h | |
| parent | 5edce4539b239eab9b045bb2fde18456f6fdbfe4 (diff) | |
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.
Diffstat (limited to 'ports/stm32/dma.h')
| -rw-r--r-- | ports/stm32/dma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/dma.h b/ports/stm32/dma.h index 005518161..15a424a35 100644 --- a/ports/stm32/dma.h +++ b/ports/stm32/dma.h @@ -28,7 +28,7 @@ typedef struct _dma_descr_t dma_descr_t; -#if defined(MCU_SERIES_F4) || defined(MCU_SERIES_F7) +#if defined(STM32F4) || defined(STM32F7) extern const dma_descr_t dma_I2C_1_RX; extern const dma_descr_t dma_SPI_3_RX; @@ -57,7 +57,7 @@ extern const dma_descr_t dma_SDMMC_2_TX; extern const dma_descr_t dma_SPI_6_RX; extern const dma_descr_t dma_SDIO_0_TX; -#elif defined(MCU_SERIES_L4) +#elif defined(STM32L4) extern const dma_descr_t dma_ADC_1_RX; extern const dma_descr_t dma_ADC_2_RX; |
