Skip to content

Commit 621c0ac

Browse files
dbristow-otcDavid-OConnor
authored andcommitted
Limit ADC Triggers struct to l4x5 and l4x6 since the l4x1, l4x2, and l4x3 have a different subset of triggers.
1 parent 0176770 commit 621c0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cfg_if! {
101101
Tim8Trgo = 0b1110,
102102
Exti11 = 0b1111,
103103
}
104-
} else if #[cfg(feature = "l4")] {
104+
} else if #[cfg(any(feature = "l4x5", feature="l4x6"))] {
105105
/// Select a trigger. Sets CFGR reg, EXTSEL field. See L4 RM, table 108: External triggers for regular channels
106106
#[derive(Clone, Copy)]
107107
#[repr(u8)]

0 commit comments

Comments
 (0)