mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
C++14: make some wrapper classes static.
Also address GCC 6.2 not allowing constexpr from reinterpret_cast<> values.
This commit is contained in:
parent
0ea2f9650e
commit
a22dc150bc
5 changed files with 68 additions and 69 deletions
|
@ -52,22 +52,22 @@ constexpr adc::Config adc1_config {
|
|||
};
|
||||
|
||||
void init() {
|
||||
adc1.clock_enable();
|
||||
adc1.interrupts_disable();
|
||||
adc1.power_up(adc1_config);
|
||||
adc1.interrupts_enable(adc1_interrupt_mask);
|
||||
adc1::clock_enable();
|
||||
adc1::interrupts_disable();
|
||||
adc1::power_up(adc1_config);
|
||||
adc1::interrupts_enable(adc1_interrupt_mask);
|
||||
|
||||
dma::init();
|
||||
}
|
||||
|
||||
void start() {
|
||||
dma::enable();
|
||||
adc1.start_burst();
|
||||
adc1::start_burst();
|
||||
}
|
||||
|
||||
void stop() {
|
||||
dma::disable();
|
||||
adc1.stop_burst();
|
||||
adc1::stop_burst();
|
||||
}
|
||||
|
||||
} /* namespace rssi */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue