diff options
author | Perry Hung <iperry@gmail.com> | 2011-03-21 02:27:45 -0400 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2011-03-21 02:27:45 -0400 |
commit | ef0936df9b58a0589e68a460a7c963d05f9a1759 (patch) | |
tree | 1b97213bf4cf30978c4ff1b2d1c29e5f159e24e1 /libmaple/adc.h | |
parent | 403498a28956507bb3063e6d7c190639c0279f47 (diff) | |
download | librambutan-ef0936df9b58a0589e68a460a7c963d05f9a1759.tar.gz librambutan-ef0936df9b58a0589e68a460a7c963d05f9a1759.zip |
Fix compiler errors after reverting broken commit.
Diffstat (limited to 'libmaple/adc.h')
-rw-r--r-- | libmaple/adc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/adc.h b/libmaple/adc.h index 4811dbc..53ef032 100644 --- a/libmaple/adc.h +++ b/libmaple/adc.h @@ -175,7 +175,7 @@ static inline uint32 adc_read(const adc_dev *dev, uint8 channel) { * @param enable If 1, conversion on external events is enabled, 0 to disable */ static inline void adc_set_exttrig(const adc_dev *dev, uint8 enable) { - *bb_peripv(&dev->regs->CR2, 20) = !!enable; + *bb_perip(&dev->regs->CR2, 20) = !!enable; } /** @@ -183,7 +183,7 @@ static inline void adc_set_exttrig(const adc_dev *dev, uint8 enable) { * @param dev ADC device to enable */ static inline void adc_enable(const adc_dev *dev) { - *bb_peripv(&dev->regs->CR2, 0) = 1; + *bb_perip(&dev->regs->CR2, 0) = 1; } /** @@ -191,7 +191,7 @@ static inline void adc_enable(const adc_dev *dev) { * @param dev ADC device to disable */ static inline void adc_disable(const adc_dev *dev) { - *bb_peripv(&dev->regs->CR2, 0) = 0; + *bb_perip(&dev->regs->CR2, 0) = 0; } /** |