Skip to content

Commit 9d17eb1

Browse files
committed
Add TODO comments to adc
1 parent 5c14174 commit 9d17eb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/adc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const MAX_ADVREGEN_STARTUP_US: u32 = 10;
3535
/// Analog Digital Converter Peripheral
3636
// TODO: Remove `pub` from the register block once all functionalities are implemented.
3737
// Leave it here until then as it allows easy access to the registers.
38+
// TODO(Sh3Rm4n) Add configuration and other things like in the `stm32f4xx-hal` crate
3839
pub struct Adc<ADC> {
3940
/// ADC Register
4041
pub rb: ADC,
@@ -109,6 +110,8 @@ impl From<SampleTime> for SMP18_A {
109110

110111
/// ADC operation mode
111112
// TODO: Implement other modes (DMA, Differential,…)
113+
// TODO(Sh3Rm4n): Maybe make operation modes to type states to better
114+
// integrate with embedded-hal crates?
112115
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
113116
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
114117
#[non_exhaustive]

0 commit comments

Comments
 (0)