Open-CMSIS-Pack / generator-bridge

Reference examples of a generator bridge. E.g. STCubeMX_Bridge
Apache License 2.0
2 stars 6 forks source link

Enhance cbridge to include SDIO/SDMMC peripheral clock frequency information #74

Closed DavidLesnjak closed 2 months ago

DavidLesnjak commented 2 months ago

Describe The Problem To Be Solved CMSIS driver MCI_STM32 requires information about peripheral clock frequency. Example:

SDIO peripheral:

/* Peripheral Clock Frequency */
#define MX_SDIO_PERIPH_CLOCK_FREQ              16000000

SDMMC peirpheral:

/* Peripheral Clock Frequency */
#define MX_SDMMC2_PERIPH_CLOCK_FREQ       8000000

Extend cbridge to provide required information in MX_Device.h