diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-03-12 23:28:53 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-03-12 23:28:53 -0500 |
commit | e3fae0984dab4f1044ea3ffc1aa41b2df12370b2 (patch) | |
tree | 9de019bb440aa7403da64b21d76428544ff6709d /libmaple/bkp.c | |
parent | 9579e9487c2039df38cc4fd0ac2846ef07cc0947 (diff) | |
download | librambutan-e3fae0984dab4f1044ea3ffc1aa41b2df12370b2.tar.gz librambutan-e3fae0984dab4f1044ea3ffc1aa41b2df12370b2.zip |
RCC refactor, bugfixes
Diffstat (limited to 'libmaple/bkp.c')
-rw-r--r-- | libmaple/bkp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/bkp.c b/libmaple/bkp.c index b152069..aaccb1f 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_peripv(&PWR_BASE->CR, PWR_CR_DBP) = 1; + *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 1; } /** * Disable write access to the backup registers. */ void bkp_disable_writes(void) { - *bb_peripv(&PWR_BASE->CR, PWR_CR_DBP) = 0; + *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 0; } /** |