aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/adc.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-03-12 23:28:53 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-03-12 23:28:53 -0500
commite3fae0984dab4f1044ea3ffc1aa41b2df12370b2 (patch)
tree9de019bb440aa7403da64b21d76428544ff6709d /libmaple/adc.h
parent9579e9487c2039df38cc4fd0ac2846ef07cc0947 (diff)
downloadlibrambutan-e3fae0984dab4f1044ea3ffc1aa41b2df12370b2.tar.gz
librambutan-e3fae0984dab4f1044ea3ffc1aa41b2df12370b2.zip
RCC refactor, bugfixes
Diffstat (limited to 'libmaple/adc.h')
-rw-r--r--libmaple/adc.h6
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;
}
/**