diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 15:09:43 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 15:11:14 -0500 |
commit | a731953b8522c010ceb076dc7cf116ff3250df26 (patch) | |
tree | ac8f93aa272de92a9e82fd53555bc621f0f68285 /libmaple/stm32f1 | |
parent | b6e2d2a9d3acd89cdace2a535cfb183bce66fe58 (diff) | |
parent | 162ad9641415702f82f949349bf461c0704a48db (diff) | |
download | librambutan-a731953b8522c010ceb076dc7cf116ff3250df26.tar.gz librambutan-a731953b8522c010ceb076dc7cf116ff3250df26.zip |
Merge remote-tracking branch 'wesen/bug/bkp'
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1')
-rw-r--r-- | libmaple/stm32f1/bkp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/stm32f1/bkp.c b/libmaple/stm32f1/bkp.c index f435ff1..01ad419 100644 --- a/libmaple/stm32f1/bkp.c +++ b/libmaple/stm32f1/bkp.c @@ -62,14 +62,14 @@ void bkp_init(void) { * @see bkp_init() */ void bkp_enable_writes(void) { - *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 1; + *bb_perip(&PWR_BASE->CR, PWR_CR_DBP_BIT) = 1; } /** * Disable write access to the backup registers. */ void bkp_disable_writes(void) { - *bb_perip(&PWR_BASE->CR, PWR_CR_DBP) = 0; + *bb_perip(&PWR_BASE->CR, PWR_CR_DBP_BIT) = 0; } /** |