Skip to content

Commit

Permalink
Added CRC RCC macros.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@10179 35acf78f-673a-0410-8e92-d51de3d6d3f4
  • Loading branch information
gdisirio committed Apr 25, 2017
1 parent 5e5afbb commit c8198eb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions os/hal/ports/STM32/STM32F4xx/stm32_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,36 @@
#define rccResetDMA2D() rccResetAHB1(RCC_AHB1RSTR_DMA2DRST)
/** @} */

/**
* @name CRC peripheral specific RCC operations
* @{
*/
/**
* @brief Enables the CRC peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccEnableCRC(lp) rccEnableAHB1(RCC_AHB1ENR_CRCEN, lp)

/**
* @brief Disables the CRC peripheral clock.
*
* @param[in] lp low power enable flag
*
* @api
*/
#define rccDisableCRC(lp) rccDisableAHB1(RCC_AHB1ENR_CRCEN, lp)

/**
* @brief Resets the CRC peripheral.
*
* @api
*/
#define rccResetCRC() rccResetAHB1(RCC_AHB1RSTR_CRCRST)
/** @} */

/**
* @name FSMC peripherals specific RCC operations
* @{
Expand Down Expand Up @@ -1598,6 +1628,7 @@
#endif
/** @} */


/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
Expand Down

0 comments on commit c8198eb

Please sign in to comment.