Skip to content

Commit 3b515b7

Browse files
committed
Fixes after rebase
1 parent 080f4ae commit 3b515b7

35 files changed

+43
-43
lines changed

esp-hal-common/src/prelude.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub use crate::{
5454
},
5555
},
5656
macros::*,
57-
serial::{Instance as _esp_hal_serial_Instance, UartPins as _esp_hal_serial_UartPins},
57+
uart::{Instance as _esp_hal_uart_Instance, UartPins as _esp_hal_uart_UartPins},
5858
spi::{
5959
dma::WithDmaSpi2 as _esp_hal_spi_dma_WithDmaSpi2,
6060
Instance as _esp_hal_spi_Instance,
@@ -132,7 +132,7 @@ pub mod eh1 {
132132
},
133133
},
134134
macros::*,
135-
serial::{Instance as _esp_hal_serial_Instance, UartPins as _esp_hal_serial_UartPins},
135+
uart::{Instance as _esp_hal_serial_Instance, UartPins as _esp_hal_serial_UartPins},
136136
spi::{
137137
dma::WithDmaSpi2 as _esp_hal_spi_dma_WithDmaSpi2,
138138
Instance as _esp_hal_spi_Instance,

esp-hal-common/src/pulse_control.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
//!
3737
//! ### Example (for ESP32-C3)
3838
//! ```
39-
//! let mut peripherals = pac::Peripherals::take().unwrap();
39+
//! let mut peripherals = peripherals::Peripherals::take().unwrap();
4040
//!
4141
//! // Configure RMT peripheral globally
4242
//! let pulse = PulseControl::new(

esp32-hal/examples/embassy_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use esp32_hal::{
99
clock::ClockControl,
1010
prelude::*,
1111
timer::TimerGroup,
12-
Rtc, embassy, pac::Peripherals,
12+
Rtc, embassy, peripherals::Peripherals,
1313
};
1414
use esp_backtrace as _;
1515
use static_cell::StaticCell;

esp32-hal/examples/hello_rgb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use esp32_hal::{
1717
clock::ClockControl,
18-
pac,
18+
peripherals,
1919
prelude::*,
2020
timer::TimerGroup,
2121
utils::{smartLedAdapter, SmartLedsAdapter},

esp32-hal/examples/i2c_bmp180_calibration_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32_hal::{
1313
clock::ClockControl,
1414
gpio::IO,
1515
i2c::I2C,
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32-hal/examples/i2s_read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use esp32_hal::{
1818
dma::{DmaPriority},
1919
pdma::Dma,
2020
i2s::{DataFormat, I2s, NoMclk, Standard, I2s0New, PinsBclkWsDin, I2sReadDma},
21-
pac::Peripherals,
21+
peripherals::Peripherals,
2222
prelude::*,
2323
timer::TimerGroup,
2424
Rtc,

esp32-hal/examples/i2s_sound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use esp32_hal::{
3434
dma::DmaPriority,
3535
pdma::Dma,
3636
i2s::{DataFormat, I2s, I2sWriteDma, NoMclk, PinsBclkWsDout, Standard, I2s0New},
37-
pac::Peripherals,
37+
peripherals::Peripherals,
3838
prelude::*,
3939
timer::TimerGroup,
4040
Rtc,

esp32-hal/examples/mcpwm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32_hal::{
1313
operator::PwmPinConfig,
1414
timer::PwmWorkingMode,
1515
},
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32-hal/examples/sha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use esp32_hal::{
88
clock::ClockControl,
9-
pac::Peripherals,
9+
peripherals::Peripherals,
1010
prelude::*,
1111
timer::TimerGroup,
1212
Rtc,

esp32-hal/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub use esp_hal_common::{
3131
Rng,
3232
Rtc,
3333
Rwdt,
34-
sha
34+
sha,
3535
Uart,
3636
};
3737

esp32c2-hal/examples/embassy_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use embassy_time::{Duration, Timer};
77
use esp32c2_hal::{
88
clock::ClockControl,
99
embassy,
10-
pac::Peripherals,
10+
peripherals::Peripherals,
1111
prelude::*,
1212
timer::TimerGroup,
1313
Rtc,

esp32c2-hal/examples/i2c_bmp180_calibration_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32c2_hal::{
1313
clock::ClockControl,
1414
gpio::IO,
1515
i2c::I2C,
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32c2-hal/examples/sha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use esp32c2_hal::{
88
clock::ClockControl,
9-
pac::Peripherals,
9+
peripherals::Peripherals,
1010
prelude::*,
1111
timer::TimerGroup,
1212
Rtc,

esp32c3-hal/examples/embassy_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use esp32c3_hal::{
99
clock::ClockControl,
1010
prelude::*,
1111
timer::TimerGroup,
12-
Rtc, embassy, pac::Peripherals,
12+
Rtc, embassy, peripherals::Peripherals,
1313
};
1414
use esp_backtrace as _;
1515
use static_cell::StaticCell;

esp32c3-hal/examples/hello_rgb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use esp32c3_hal::{
1515
clock::ClockControl,
16-
pac,
16+
peripherals,
1717
prelude::*,
1818
pulse_control::ClockSource,
1919
timer::TimerGroup,

esp32c3-hal/examples/i2c_bmp180_calibration_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32c3_hal::{
1313
clock::ClockControl,
1414
gpio::IO,
1515
i2c::I2C,
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32c3-hal/examples/i2s_read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use esp32c3_hal::{
1919
dma::DmaPriority,
2020
gdma::Gdma,
2121
i2s::{DataFormat, I2s, I2sReadDma, MclkPin, PinsBclkWsDin, Standard, I2s0New},
22-
pac::Peripherals,
22+
peripherals::Peripherals,
2323
prelude::*,
2424
timer::TimerGroup,
2525
Rtc,

esp32c3-hal/examples/i2s_sound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use esp32c3_hal::{
3535
dma::DmaPriority,
3636
gdma::Gdma,
3737
i2s::{DataFormat, I2s, I2sWriteDma, MclkPin, PinsBclkWsDout, Standard, I2s0New},
38-
pac::Peripherals,
38+
peripherals::Peripherals,
3939
prelude::*,
4040
timer::TimerGroup,
4141
Rtc,

esp32c3-hal/examples/sha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use esp32c3_hal::{
88
clock::ClockControl,
9-
pac::Peripherals,
9+
peripherals::Peripherals,
1010
prelude::*,
1111
timer::TimerGroup,
1212
Rtc,

esp32c3-hal/examples/usb_serial_jtag.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use critical_section::Mutex;
1212
use esp32c3_hal::{
1313
clock::ClockControl,
1414
interrupt,
15-
pac::{self, USB_DEVICE},
15+
peripherals::{self, USB_DEVICE},
1616
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
@@ -55,7 +55,7 @@ fn main() -> ! {
5555
critical_section::with(|cs| USB_SERIAL.borrow_ref_mut(cs).replace(usb_serial));
5656

5757
interrupt::enable(
58-
pac::Interrupt::USB_SERIAL_JTAG,
58+
peripherals::Interrupt::USB_SERIAL_JTAG,
5959
interrupt::Priority::Priority1,
6060
)
6161
.unwrap();

esp32c3-hal/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ unsafe fn configure_mmu() {
407407
0,
408408
);
409409

410-
let peripherals = pac::Peripherals::steal();
410+
let peripherals = peripherals::Peripherals::steal();
411411
peripherals.EXTMEM.icache_ctrl1.modify(|_, w| {
412412
w.icache_shut_ibus()
413413
.clear_bit()

esp32s2-hal/examples/embassy_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use esp32s2_hal::{
99
clock::ClockControl,
1010
prelude::*,
1111
timer::TimerGroup,
12-
Rtc, embassy, pac::Peripherals,
12+
Rtc, embassy, peripherals::Peripherals,
1313
};
1414
use esp_backtrace as _;
1515
use xtensa_atomic_emulation_trap as _;

esp32s2-hal/examples/i2c_bmp180_calibration_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32s2_hal::{
1313
clock::ClockControl,
1414
gpio::IO,
1515
i2c::I2C,
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32s2-hal/examples/i2s_read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use esp32s2_hal::{
1818
dma::{DmaPriority},
1919
pdma::Dma,
2020
i2s::{DataFormat, I2s, NoMclk, Standard, I2s0New, PinsBclkWsDin, I2sReadDma},
21-
pac::Peripherals,
21+
peripherals::Peripherals,
2222
prelude::*,
2323
timer::TimerGroup,
2424
Rtc,

esp32s2-hal/examples/i2s_sound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use esp32s2_hal::{
3535
dma::DmaPriority,
3636
pdma::Dma,
3737
i2s::{DataFormat, I2s, I2sWriteDma, MclkPin, PinsBclkWsDout, Standard, I2s0New},
38-
pac::Peripherals,
38+
peripherals::Peripherals,
3939
prelude::*,
4040
timer::TimerGroup,
4141
Rtc,

esp32s2-hal/examples/sha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use esp32s2_hal::{
88
clock::ClockControl,
9-
pac::Peripherals,
9+
peripherals::Peripherals,
1010
prelude::*,
1111
timer::TimerGroup,
1212
Rtc,

esp32s2-hal/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub use esp_hal_common::{
3131
Rng,
3232
Rtc,
3333
Rwdt,
34-
sha
34+
sha,
3535
Uart,
3636
};
3737

esp32s3-hal/examples/embassy_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use esp32s3_hal::{
99
clock::ClockControl,
1010
prelude::*,
1111
timer::TimerGroup,
12-
Rtc, embassy, pac::Peripherals,
12+
Rtc, embassy, peripherals::Peripherals,
1313
};
1414
use esp_backtrace as _;
1515
use static_cell::StaticCell;

esp32s3-hal/examples/i2c_bmp180_calibration_data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![no_main]
1111

1212
use esp32s3_hal::{
13-
clock::ClockControl, gpio::IO, i2c::I2C, pac::Peripherals, prelude::*, timer::TimerGroup, Rtc,
13+
clock::ClockControl, gpio::IO, i2c::I2C, peripherals::Peripherals, prelude::*, timer::TimerGroup, Rtc,
1414
};
1515
use esp_backtrace as _;
1616
use esp_println::println;

esp32s3-hal/examples/i2s_read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use esp32s3_hal::{
1919
dma::DmaPriority,
2020
gdma::Gdma,
2121
i2s::{DataFormat, I2s, I2sReadDma, MclkPin, PinsBclkWsDin, Standard, I2s0New},
22-
pac::Peripherals,
22+
peripherals::Peripherals,
2323
prelude::*,
2424
timer::TimerGroup,
2525
Rtc,

esp32s3-hal/examples/i2s_sound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use esp32s3_hal::{
3535
dma::DmaPriority,
3636
gdma::Gdma,
3737
i2s::{DataFormat, I2s, I2sWriteDma, MclkPin, PinsBclkWsDout, Standard, I2s0New},
38-
pac::Peripherals,
38+
peripherals::Peripherals,
3939
prelude::*,
4040
timer::TimerGroup,
4141
Rtc,

esp32s3-hal/examples/mcpwm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use esp32s3_hal::{
1313
operator::PwmPinConfig,
1414
timer::PwmWorkingMode,
1515
},
16-
pac::Peripherals,
16+
peripherals::Peripherals,
1717
prelude::*,
1818
timer::TimerGroup,
1919
Rtc,

esp32s3-hal/examples/sha.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use esp32s3_hal::{
88
clock::ClockControl,
9-
pac::Peripherals,
9+
peripherals::Peripherals,
1010
prelude::*,
1111
timer::TimerGroup,
1212
Rtc,

esp32s3-hal/examples/usb_serial_jtag.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use critical_section::Mutex;
1313
use esp32s3_hal::{
1414
clock::ClockControl,
1515
interrupt,
16-
pac::{self, USB_DEVICE},
16+
peripherals::{self, USB_DEVICE},
1717
peripherals::Peripherals,
1818
prelude::*,
1919
timer::TimerGroup,
@@ -50,7 +50,7 @@ fn main() -> ! {
5050

5151
critical_section::with(|cs| USB_SERIAL.borrow_ref_mut(cs).replace(usb_serial));
5252

53-
interrupt::enable(pac::Interrupt::USB_DEVICE, interrupt::Priority::Priority1).unwrap();
53+
interrupt::enable(peripherals::Interrupt::USB_DEVICE, interrupt::Priority::Priority1).unwrap();
5454

5555
loop {
5656
critical_section::with(|cs| {

esp32s3-hal/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -142,24 +142,24 @@ pub unsafe fn startup_direct_boot() -> ! {
142142
// do some configurations for compatability with the 2nd stage bootloader
143143
// this is a workaround and ideally we should deal with these settings in other
144144
// places
145-
(&*crate::pac::TIMG0::PTR)
145+
(&*crate::peripherals::TIMG0::PTR)
146146
.int_ena_timers
147147
.modify(|_, w| w.t0_int_ena().set_bit().t1_int_ena().set_bit());
148-
(&*crate::pac::TIMG1::PTR)
148+
(&*crate::peripherals::TIMG1::PTR)
149149
.int_ena_timers
150150
.modify(|_, w| w.t0_int_ena().set_bit().t1_int_ena().set_bit());
151151

152-
(&*crate::pac::RTC_CNTL::PTR)
152+
(&*crate::peripherals::RTC_CNTL::PTR)
153153
.swd_wprotect
154154
.write(|w| w.bits(0x8f1d312a));
155-
(&*crate::pac::RTC_CNTL::PTR)
155+
(&*crate::peripherals::RTC_CNTL::PTR)
156156
.swd_conf
157157
.modify(|_, w| w.swd_disable().set_bit());
158-
(&*crate::pac::RTC_CNTL::PTR)
158+
(&*crate::peripherals::RTC_CNTL::PTR)
159159
.swd_wprotect
160160
.write(|w| w.bits(0));
161161

162-
(&*crate::pac::SYSTEM::PTR)
162+
(&*crate::peripherals::SYSTEM::PTR)
163163
.sysclk_conf
164164
.modify(|_, w| w.soc_clk_sel().bits(1));
165165

0 commit comments

Comments
 (0)