Incorrect SDMMC defines for STM32L4xx chips
Posted: Wed Jul 13, 2016 9:12 pm
SDMMC_DCTRL_DBLOCKSIZE_2 and SDMMC_DCTRL_DBLOCKSIZE_3 are incorrect in a number of files.
Should be:
Here is a list problem files.
Code: Select all
#define SDMMC_DCTRL_DBLOCKSIZE_2 (0x3U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
#define SDMMC_DCTRL_DBLOCKSIZE_3 (0x4U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
Should be:
Code: Select all
#define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */
#define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */
Here is a list problem files.
common/ext/CMSIS/ST/STM32L4xx/stm32l431xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l433xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l443xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l471xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l475xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l476xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l485xx.h
common/ext/CMSIS/ST/STM32L4xx/stm32l486xx.h