small fix in RCC helper for RTC

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3347 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-09-19 11:47:12 +00:00
parent 3b722ddd33
commit c1a1893307
1 changed files with 4 additions and 2 deletions

View File

@ -214,7 +214,8 @@
*
* @api
*/
#define rccEnableBKP(lp) rccEnableAPB1(RCC_APB1ENR_BKPEN, lp);
#define rccEnableBKP(lp) \
rccEnableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp);
/**
* @brief Disables BKP interface clock.
@ -224,7 +225,8 @@
*
* @api
*/
#define rccDisableBKP(lp) rccDisableAPB1(RCC_APB1ENR_BKPEN, lp);
#define rccDisableBKP(lp) \
rccDisableAPB1((RCC_APB1ENR_BKPEN | RCC_APB1ENR_PWREN), lp);
/**
* @brief Resets the Backup Domain.