mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 21:53:33 +08:00
samv7 adc and tone_alarm move to cdev lib
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
# define rCCR REG(STM32_ADC_CCR_OFFSET)
|
||||
#endif
|
||||
|
||||
class ADC : public device::CDev
|
||||
class ADC : public cdev::CDev
|
||||
{
|
||||
public:
|
||||
ADC(uint32_t channels);
|
||||
@@ -145,7 +145,7 @@ private:
|
||||
};
|
||||
|
||||
ADC::ADC(uint32_t channels) :
|
||||
CDev("adc", ADC0_DEVICE_PATH),
|
||||
CDev(ADC0_DEVICE_PATH),
|
||||
_sample_perf(perf_alloc(PC_ELAPSED, "adc_samples")),
|
||||
_channel_count(0),
|
||||
_samples(nullptr),
|
||||
|
||||
Reference in New Issue
Block a user