diff options
| author | Perry Hung <iperry@gmail.com> | 2011-03-21 02:25:23 -0400 | 
|---|---|---|
| committer | Perry Hung <iperry@gmail.com> | 2011-03-21 02:25:23 -0400 | 
| commit | 403498a28956507bb3063e6d7c190639c0279f47 (patch) | |
| tree | d68ccd6e85ac82bea1dff4066ad7fbd8003bdecb /libmaple/adc.c | |
| parent | 6245b43b26e47ece1927d28246611488c2f36e67 (diff) | |
| download | librambutan-403498a28956507bb3063e6d7c190639c0279f47.tar.gz librambutan-403498a28956507bb3063e6d7c190639c0279f47.zip | |
Revert "RCC refactor, bugfixes"
This reverts commit e4807a5010f59ab863ad2c96dc14caf65bf1ae60.
Diffstat (limited to 'libmaple/adc.c')
| -rw-r--r-- | libmaple/adc.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/libmaple/adc.c b/libmaple/adc.c index 3d38596..9626a40 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_perip(&(dev->regs->CR2), 3); -    __io uint32 *cal_bit = bb_perip(&(dev->regs->CR2), 2); +    __io uint32 *rstcal_bit = bb_peripv(&(dev->regs->CR2), 3); +    __io uint32 *cal_bit = bb_peripv(&(dev->regs->CR2), 2);      *rstcal_bit = 1;      while (*rstcal_bit) | 
