Rename EXMC -> FSMC

This commit is contained in:
Stefan Kerkmann 2021-03-31 12:04:15 +02:00
parent cc58c381f3
commit b8f128c86c
3 changed files with 9 additions and 9 deletions

View File

@ -953,24 +953,24 @@
/** @} */
/**
* @name FSMC peripherals specific RCU operations
* @name EXMC peripherals specific RCU operations
* @{
*/
/**
* @brief Enables the FSMC peripheral clock.
* @brief Enables the EXMC peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rcuEnableFSMC(lp) rcuEnableAHB(RCU_AHBENR_FSMCEN, lp)
#define rcuEnableEXMC(lp) rcuEnableAHB(RCU_AHBENR_EXMCEN, lp)
/**
* @brief Disables the FSMC peripheral clock.
* @brief Disables the EXMC peripheral clock.
*
* @api
*/
#define rcuDisableFSMC() rcuDisableAHB(RCU_AHBENR_FSMCEN)
#define rcuDisableEXMC() rcuDisableAHB(RCU_AHBENR_EXMCEN)
/** @} */
/*===========================================================================*/

View File

@ -310,11 +310,11 @@
/* FWDGT attributes.*/
#define GD32_HAS_FWDGT TRUE
/* FSMC attributes.*/
/* EXMC attributes.*/
#if GD32_HAS_EXMC
#define GD32_HAS_FSMC TRUE
#define GD32_HAS_EXMC TRUE
#else
#define GD32_HAS_FSMC FALSE
#define GD32_HAS_EXMC FALSE
#endif
/* CRC attributes.*/

View File

@ -3103,7 +3103,7 @@ typedef struct
/****************** Bit definition for AFIO_PCF1 register ******************/
#define AFIO_PCF1_EXMC_NADV_REMAP_Pos (10U)
#define AFIO_PCF1_EXMC_NADV_REMAP_Msk (0x1U << AFIO_PCF1_EXMC_NADV_REMAP_Pos) /*!< 0x00000400 */
#define AFIO_PCF1_EXMC_NADV_REMAP AFIO_PCF1_EXMC_NADV_REMAP_Msk /*!< FSMC NADV remapping */
#define AFIO_PCF1_EXMC_NADV_REMAP AFIO_PCF1_EXMC_NADV_REMAP_Msk /*!< EXMC NADV remapping */
/******************************************************************************/
/* */