Skip to content

Commit

Permalink
feat: add support for ADC channel 19 (#389)
Browse files Browse the repository at this point in the history
Support channel 19
  • Loading branch information
fabiangottstein committed Aug 29, 2024
1 parent d17039e commit 114b832
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hal_st/stm32fxxx/AnalogToDigitalPinStm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C"

namespace
{
constexpr std::array<uint32_t, 19> adcChannel = {
constexpr uint32_t adcChannel[] = {
ADC_CHANNEL_0,
ADC_CHANNEL_1,
ADC_CHANNEL_2,
Expand All @@ -31,7 +31,10 @@ namespace
ADC_CHANNEL_15,
ADC_CHANNEL_16,
ADC_CHANNEL_17,
ADC_CHANNEL_18
ADC_CHANNEL_18,
#endif
#ifdef ADC_CHANNEL_19
ADC_CHANNEL_19,
#endif
};
}
Expand Down

0 comments on commit 114b832

Please sign in to comment.