aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/adc.h
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-03-21 02:25:23 -0400
committerPerry Hung <iperry@gmail.com>2011-03-21 02:25:23 -0400
commit403498a28956507bb3063e6d7c190639c0279f47 (patch)
treed68ccd6e85ac82bea1dff4066ad7fbd8003bdecb /libmaple/adc.h
parent6245b43b26e47ece1927d28246611488c2f36e67 (diff)
downloadlibrambutan-403498a28956507bb3063e6d7c190639c0279f47.tar.gz
librambutan-403498a28956507bb3063e6d7c190639c0279f47.zip
Revert "RCC refactor, bugfixes"
This reverts commit e4807a5010f59ab863ad2c96dc14caf65bf1ae60.
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 53ef032..4811dbc 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_perip(&dev->regs->CR2, 20) = !!enable;
+ *bb_peripv(&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_perip(&dev->regs->CR2, 0) = 1;
+ *bb_peripv(&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_perip(&dev->regs->CR2, 0) = 0;
+ *bb_peripv(&dev->regs->CR2, 0) = 0;
}
/**