Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump embedded-hal-bus from 0.2.0 to 0.3.0 #1002

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ embedded-hal-02 = { package = "embedded-hal", version = "0.2.7", features = [
"unproven",
] }
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-bus = "0.2.0"
embedded-hal-bus = "0.3.0"
urukul = { version = "0.1.1", path = "urukul" }
ad9912 = { version = "0.1.1", path = "ad9912" }

2 changes: 1 addition & 1 deletion urukul/Cargo.toml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ arbitrary-int = { version = "1.3.0", features = ["serde"] }
thiserror = { version = "2.0.11", default-features = false }
num-traits = { version = "0.2.19", default-features = false }
embedded-hal = { version = "1.0" }
embedded-hal-bus = "0.2.0"
embedded-hal-bus = "0.3.0"
bitbybit = "1.3.3"
ad9912 = { version = "0.1.1", path = "../ad9912" }
log = "0.4"

Unchanged files with check annotations Beta

// never actually modified. It technically only needs to be immutably
// borrowed, but the current HAL API only supports mutable borrows.
let spi_eot_clear = unsafe {
SPI_EOT_CLEAR.write([1 << 3])

Check warning on line 298 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged

Check warning on line 298 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged
};
// Generate DMA events when the timer hits zero (roll-over). This must be before
// current HAL API only supports mutable borrows.
// Write a binary code into the SPI control register to initiate a transfer.
let spi_start = unsafe {
SPI_START.write([0x201])

Check warning on line 341 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged

Check warning on line 341 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged
};
// Construct the trigger stream to write from memory to the peripheral.
spi.listen(hal::spi::Event::Error);
let adc_buf = unsafe {
ADC_BUF.write(Default::default())

Check warning on line 378 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged

Check warning on line 378 in src/hardware/adc.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged
};
let adc_bufs = adc_buf[$index].split_at_mut(1);
(ref_clk, mdio, mdc, crs_dv, rxd0, rxd1, tx_en, txd0, txd1)
};
let ring = unsafe { DES_RING.write(ethernet::DesRing::new()) };

Check warning on line 672 in src/hardware/setup.rs

GitHub Actions / style

creating a mutable reference to mutable static is discouraged
// Configure the ethernet controller
let (mut eth_dma, eth_mac) = ethernet::new(