stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.
154 stars 103 forks source link

Expand ADC feature set #275

Open Crzyrndm opened 2 years ago

Crzyrndm commented 2 years ago

Was just looking at adding ADC2/ADC3, but adc's are a fairly big target feature wise so a full list of features and implmentation status seems like a good starting point (from RM0394 "ADC main features"). Significant chunks of this will work and can be checked off immediately (for ADC1 anyway).

Going through the C HAL, it seems very likely that other than the number of peripherals present, the ADC behaves pretty much the same for all L4 and L4+ devices (minimal feature gating)

Questions / Needs Research / ...

Crzyrndm commented 2 years ago

ADC1 does have some DMA integration. Not sure how complete it is (sub features?)