mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 07:30:08 -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
|
@ -67,11 +67,11 @@ constexpr size_t clock_generator_output_mcu_clkin = 7;
|
|||
|
||||
/* ADC0 */
|
||||
|
||||
constexpr adc::ADC adc0 { LPC_ADC0 };
|
||||
using adc0 = adc::ADC<LPC_ADC0_BASE>;
|
||||
|
||||
/* ADC1 */
|
||||
|
||||
constexpr adc::ADC adc1 { LPC_ADC1 };
|
||||
using adc1 = adc::ADC<LPC_ADC1_BASE>;
|
||||
|
||||
void reset();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue