在线时间1 小时
UID305680
ST金币0
蝴蝶豆0
注册时间2011-7-14
中级会员
- 最后登录
- 1970-1-1
|
发表于 2011-8-30 19:14:53
|
显示全部楼层
a0a.1 0b0c
RE:关于备份寄存器初始化函数的问题BKP_DeInit()
按照参考手册上的说明,应该是不影响:
Bit 16 BDRST: Backup domain software reset
Set and cleared by software.
0: Reset not activated
1: Resets the entire Backup domain
Note: The BKPSRAM is not affected by this reset, the only way of resetting the BKPSRAM is
through the Flash interface when a protection level change from level 1 to level 0 is
requested.
函数原型如下:
void BKP_DeInit(void)
{
RCC_BackupResetCmd(ENABLE);
RCC_BackupResetCmd(DISABLE);
}
void RCC_BackupResetCmd(FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_FUNCTIONAL_STATE(NewState));
*(__IO uint32_t *) BDCR_BDRST_BB = (uint32_t)NewState;
}
#define BDCR_BDRST_BB (PERIPH_BB_BASE + (BDCR_OFFSET * 32) + (BDRST_BitNumber * 4)) |
|