C++14: make some wrapper classes static.

Also address GCC 6.2 not allowing constexpr from reinterpret_cast<> values.
This commit is contained in:
Jared Boone 2017-01-05 17:10:00 -08:00
parent 0ea2f9650e
commit a22dc150bc
5 changed files with 68 additions and 69 deletions

View file

@ -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();