git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15568 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
759af7d477
commit
6d88ef4c72
|
@ -118,6 +118,9 @@ void wspi_lld_init(void) {
|
||||||
WSPID2.ospi = OCTOSPI2;
|
WSPID2.ospi = OCTOSPI2;
|
||||||
WSPID2.mdma = NULL;
|
WSPID2.mdma = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Shared unit, enabling it here.*/
|
||||||
|
rccEnableOCTOSPIM(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1580,6 +1580,34 @@ __STATIC_INLINE void rccResetAHB4(uint32_t mask) {
|
||||||
#define rccResetOCTOSPI2() rccResetAHB3(RCC_AHB3RSTR_OSPI2RST)
|
#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
|
* @name RNG peripherals specific RCC operations
|
||||||
* @{
|
* @{
|
||||||
|
|
Loading…
Reference in New Issue