aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/bkp.c
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-03-21 02:25:23 -0400
committerPerry Hung <iperry@gmail.com>2011-03-21 02:25:23 -0400
commit403498a28956507bb3063e6d7c190639c0279f47 (patch)
treed68ccd6e85ac82bea1dff4066ad7fbd8003bdecb /libmaple/bkp.c
parent6245b43b26e47ece1927d28246611488c2f36e67 (diff)
downloadlibrambutan-403498a28956507bb3063e6d7c190639c0279f47.tar.gz
librambutan-403498a28956507bb3063e6d7c190639c0279f47.zip
Revert "RCC refactor, bugfixes"
This reverts commit e4807a5010f59ab863ad2c96dc14caf65bf1ae60.
Diffstat (limited to 'libmaple/bkp.c')
-rw-r--r--libmaple/bkp.c4
1 files changed, 2 insertions, 2 deletions
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;
}
/**