Made getADCRegister constexpr

This commit is contained in:
Ea-r-th
2025-09-22 22:36:06 -07:00
parent 3480cba21c
commit 59e1003262

View File

@@ -16,7 +16,7 @@ enum class ADC_Key : uint8_t{
INVALID
};
ADC_TypeDef* getADCRegister(ADC_Key key){
constexpr ADC_TypeDef* getADCRegister(ADC_Key key){
switch(key){
case ADC_Key::S_ADC1:
return ADC1;