Closed victorandrehc closed 1 year ago
@salkinium I created this PR improving the scan mode that was merged on monday, but it seems like the CI died on me. It made 13/25 tests and never executed the last 12. How can I make it execute the last 12?
The 25 other CI jobs are guarded behind the ci:hal
tag, since they run quite long and "steal" CI time from other PRs. It's not the best mechanism (you cannot set the tag, only maintainers).
You can however execute the HAL tests locally, see the readme in the tests folder.
I don't really know anything about the ADCs, so I'm delegating this to @rleh ;-P
This Pr basically sets the scan flag on register CR1 and remove the enable and disable scan mode methods, because I figured that if one is adding a channel they are probably meaning scan mode, so would be better to just enable scan mode there silently.
I'll look into it, give me some (2-3) days...
Hi @chris-durand, I will change(eliminate) the reference of the F3 then, I thought it was referring to F303 controllers.
About the scan mode, my objective is exactly to support the DMA. I have a local branch doing that already and it would be my next PR. My strategy was to merge it on smaller easier to review pull requests. If you prefer we can close this PR and I can do it all together on a big PR.
Since you use scan mode just for dma, maybe it makes sense to keep the enable and disable scan mode methods.
Since you use scan mode just for dma, maybe it makes sense to keep the enable and disable scan mode methods.
I would just leave it as is and recommend to close the PR without merging. The scan mode does no harm for now. We can finally sort it when you implement ADC DMA in your next PR.
The DMA PR is not right yet. But I will create a draft so the progress can be followed.
This PR removes enableScanMode and disableScanMode methods and incorporate them into addChannel.