aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/adc.c
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-03-21 02:27:45 -0400
committerPerry Hung <iperry@gmail.com>2011-03-21 02:27:45 -0400
commitef0936df9b58a0589e68a460a7c963d05f9a1759 (patch)
tree1b97213bf4cf30978c4ff1b2d1c29e5f159e24e1 /libmaple/adc.c
parent403498a28956507bb3063e6d7c190639c0279f47 (diff)
downloadlibrambutan-ef0936df9b58a0589e68a460a7c963d05f9a1759.tar.gz
librambutan-ef0936df9b58a0589e68a460a7c963d05f9a1759.zip
Fix compiler errors after reverting broken commit.
Diffstat (limited to 'libmaple/adc.c')
-rw-r--r--libmaple/adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/adc.c b/libmaple/adc.c
index 9626a40..3d38596 100644
--- a/libmaple/adc.c
+++ b/libmaple/adc.c
@@ -126,8 +126,8 @@ void adc_set_sample_rate(const adc_dev *dev, adc_smp_rate smp_rate) {
* @param dev adc device
*/
static void adc_calibrate(const adc_dev *dev) {
- __io uint32 *rstcal_bit = bb_peripv(&(dev->regs->CR2), 3);
- __io uint32 *cal_bit = bb_peripv(&(dev->regs->CR2), 2);
+ __io uint32 *rstcal_bit = bb_perip(&(dev->regs->CR2), 3);
+ __io uint32 *cal_bit = bb_perip(&(dev->regs->CR2), 2);
*rstcal_bit = 1;
while (*rstcal_bit)