git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15568 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2022-03-30 13:17:10 +00:00
parent 759af7d477
commit 6d88ef4c72
2 changed files with 31 additions and 0 deletions

View File

@ -118,6 +118,9 @@ void wspi_lld_init(void) {
WSPID2.ospi = OCTOSPI2;
WSPID2.mdma = NULL;
#endif
/* Shared unit, enabling it here.*/
rccEnableOCTOSPIM(false);
}
/**

View File

@ -1580,6 +1580,34 @@ __STATIC_INLINE void rccResetAHB4(uint32_t mask) {
#define rccResetOCTOSPI2() rccResetAHB3(RCC_AHB3RSTR_OSPI2RST)
/** @} */
/**
* @name OCTOSPIM peripheral specific RCC operations
* @{
*/
/**
* @brief Enables the OCTOSPIM peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableOCTOSPIM(lp) rccEnableAHB3(RCC_AHB3ENR_IOMNGREN, lp)
/**
* @brief Disables the OCTOSPIM peripheral clock.
*
* @api
*/
#define rccDisableOCTOSPIM() rccDisableAHB3(RCC_AHB3ENR_IOMNGREN)
/**
* @brief Resets the OCTOSPIM peripheral.
*
* @api
*/
#define rccResetOCTOSPIM() rccResetAHB3(RCC_AHB3RSTR_IOMNGRRST)
/** @} */
/**
* @name RNG peripherals specific RCC operations
* @{