Skip to content

Commit 6a4424c

Browse files
committed
Fixed CI
1 parent c0b8dd3 commit 6a4424c

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

embassy-stm32/src/adc/v3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ impl super::AdcRegs for crate::pac::adc::Adc {
265265
reg.set_dmaen(true);
266266
});
267267
}
268+
#[cfg(any(adc_v3, adc_g0, adc_u0))]
268269
ConversionMode::Repeated(trigger) => {
269270
#[cfg(not(adc_g0))]
270271
{

examples/stm32c0/src/bin/adc_ring_buffered_timer.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ async fn main(_spawner: Spawner) {
3939
let tim1 = p.TIM1;
4040
let mut pwm = ComplementaryPwm::new(
4141
tim1,
42-
None, // CH1
43-
None, // CH1N
44-
None, // CH2
45-
None, // CH2N
46-
None, // CH3
47-
None, // CH3N
48-
None, // CH4
49-
None, // CH4N
42+
None, // CH1
43+
None, // CH1N
44+
None, // CH2
45+
None, // CH2N
46+
None, // CH3
47+
None, // CH3N
48+
None, // CH4
49+
None, // CH4N
5050
Hertz::hz(10), // 10 Hz trigger rate
5151
CountingMode::EdgeAlignedUp,
5252
);
53-
53+
5454
// Configure TRGO2 to trigger on update event
5555
pwm.set_mms2(Mms2::UPDATE);
5656

@@ -79,7 +79,7 @@ async fn main(_spawner: Spawner) {
7979
&mut dma_buf,
8080
Irqs,
8181
sequence,
82-
TIM1_TRGO2, // Timer 1 TRGO2 as trigger source
82+
TIM1_TRGO2, // Timer 1 TRGO2 as trigger source
8383
Exten::RISING_EDGE, // Trigger on rising edge (can also use FALLING_EDGE or BOTH_EDGES)
8484
);
8585

examples/stm32g0/src/bin/adc_ring_buffered_timer.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ use embassy_executor::Spawner;
1616
use embassy_stm32::adc::{Adc, AdcChannel as _, Clock, Presc, SampleTime};
1717
use embassy_stm32::pac::adc::vals::Exten;
1818
use embassy_stm32::peripherals::DMA1_CH1;
19-
use embassy_stm32::triggers::TIM1_TRGO2;
2019
use embassy_stm32::time::Hertz;
2120
use embassy_stm32::timer::complementary_pwm::{ComplementaryPwm, Mms2};
2221
use embassy_stm32::timer::low_level::CountingMode;
22+
use embassy_stm32::triggers::TIM1_TRGO2;
2323
use embassy_stm32::{bind_interrupts, dma};
2424
use {defmt_rtt as _, panic_probe as _};
2525

@@ -39,18 +39,18 @@ async fn main(_spawner: Spawner) {
3939
let tim1 = p.TIM1;
4040
let mut pwm = ComplementaryPwm::new(
4141
tim1,
42-
None, // CH1
43-
None, // CH1N
44-
None, // CH2
45-
None, // CH2N
46-
None, // CH3
47-
None, // CH3N
48-
None, // CH4
49-
None, // CH4N
42+
None, // CH1
43+
None, // CH1N
44+
None, // CH2
45+
None, // CH2N
46+
None, // CH3
47+
None, // CH3N
48+
None, // CH4
49+
None, // CH4N
5050
Hertz::hz(10), // 10 Hz trigger rate
5151
CountingMode::EdgeAlignedUp,
5252
);
53-
53+
5454
// Configure TRGO2 to trigger on update event
5555
pwm.set_mms2(Mms2::UPDATE);
5656

@@ -79,7 +79,7 @@ async fn main(_spawner: Spawner) {
7979
&mut dma_buf,
8080
Irqs,
8181
sequence,
82-
TIM1_TRGO2, // Timer 1 TRGO2 as trigger source
82+
TIM1_TRGO2, // Timer 1 TRGO2 as trigger source
8383
Exten::RISING_EDGE, // Trigger on rising edge (can also use FALLING_EDGE or BOTH_EDGES)
8484
);
8585

0 commit comments

Comments
 (0)