From 403498a28956507bb3063e6d7c190639c0279f47 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Mon, 21 Mar 2011 02:25:23 -0400 Subject: Revert "RCC refactor, bugfixes" This reverts commit e4807a5010f59ab863ad2c96dc14caf65bf1ae60. --- libmaple/bkp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmaple/bkp.c') diff --git a/libmaple/bkp.c b/libmaple/bkp.c index aaccb1f..b152069 100644 --- a/libmaple/bkp.c +++ b/libmaple/bkp.c @@ -57,14 +57,14 @@ void bkp_init(void) { * @see bkp_init() */ void bkp_enable_writes(void) { - *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 1; + *bb_peripv(&PWR_BASE->CR, PWR_CR_DBP) = 1; } /** * Disable write access to the backup registers. */ void bkp_disable_writes(void) { - *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 0; + *bb_peripv(&PWR_BASE->CR, PWR_CR_DBP) = 0; } /** -- cgit v1.2.3