Fix RMT test (#2529)
This commit is contained in:
parent
7da4444a7e
commit
b538e48ea4
@ -101,8 +101,6 @@ mod tests {
|
|||||||
fn rmt_single_shot_fails_without_end_marker() {
|
fn rmt_single_shot_fails_without_end_marker() {
|
||||||
let peripherals = esp_hal::init(esp_hal::Config::default());
|
let peripherals = esp_hal::init(esp_hal::Config::default());
|
||||||
|
|
||||||
let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
|
|
||||||
|
|
||||||
cfg_if::cfg_if! {
|
cfg_if::cfg_if! {
|
||||||
if #[cfg(feature = "esp32h2")] {
|
if #[cfg(feature = "esp32h2")] {
|
||||||
let freq = 32.MHz();
|
let freq = 32.MHz();
|
||||||
@ -113,7 +111,7 @@ mod tests {
|
|||||||
|
|
||||||
let rmt = Rmt::new(peripherals.RMT, freq).unwrap();
|
let rmt = Rmt::new(peripherals.RMT, freq).unwrap();
|
||||||
|
|
||||||
let (_, tx) = hil_test::common_test_pins!(io);
|
let (_, tx) = hil_test::common_test_pins!(peripherals);
|
||||||
|
|
||||||
let tx_config = TxChannelConfig {
|
let tx_config = TxChannelConfig {
|
||||||
clk_divider: 255,
|
clk_divider: 255,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user