Skip to content

Commit

Permalink
Remove system! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Sep 6, 2023
1 parent c00d0eb commit 7d0e50a
Show file tree
Hide file tree
Showing 56 changed files with 55 additions and 69 deletions.
2 changes: 1 addition & 1 deletion examples-esp32/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/async_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/coex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/embassy_esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.DPORT.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/async_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/embassy_esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c2/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/async_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/coex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/embassy_esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c3/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/async_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/embassy_esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32c6/examples/static_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.PCR.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/embassy_access_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/embassy_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/embassy_esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
2 changes: 1 addition & 1 deletion examples-esp32s2/examples/esp_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> ! {

let peripherals = Peripherals::take();

let system = examples_util::system!(peripherals);
let system = peripherals.SYSTEM.split();
let mut peripheral_clock_control = system.peripheral_clock_control;
let clocks = ClockControl::max(system.clock_control).freeze();

Expand Down
Loading

0 comments on commit 7d0e50a

Please sign in to comment.