Skip to content

Commit

Permalink
getting last chips ready
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Sep 4, 2024
1 parent 820ad79 commit 26230a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 1 addition & 2 deletions hil-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ Our self-hosted runners have the following setup:
- RPi: Raspbian 12 configured with the following [setup]
- ESP32-C3 (`rustboard`):
- Devkit: `ESP32-C3-DevKit-RUST-1` connected via USB-Serial-JTAG.
- `GPIO4` and `GPIO7` are I2C pins.
- `GPIO4` and `GPIO5` are I2C pins.
- `GPIO2` and `GPIO3` are connected.
- `GPIO5` and `GPIO6` are connected.
- RPi: Raspbian 12 configured with the following [setup]
- ESP32-C6 (`esp32c6-usb`):
- Devkit: `ESP32-C6-DevKitC-1 V1.2` connected via USB-Serial-JTAG (`USB` port).
Expand Down
4 changes: 2 additions & 2 deletions hil-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ macro_rules! i2c_pins {
} else if #[cfg(esp32h2)] {
($io.pins.gpio12, $io.pins.gpio22)
} else if #[cfg(esp32c2)] {
($io.pins.gpio18, $io.pins.gpio19)
($io.pins.gpio18, $io.pins.gpio9)
} else {
($io.pins.gpio18, $io.pins.gpio7)
($io.pins.gpio4, $io.pins.gpio5)
}
}
}};
Expand Down
8 changes: 1 addition & 7 deletions hil-test/tests/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
#![no_std]
#![no_main]

use esp_hal::{
gpio::Io,
i2c::I2C,
peripherals::I2C0,
prelude::*,
Blocking,
};
use esp_hal::{gpio::Io, i2c::I2C, peripherals::I2C0, prelude::*, Blocking};
use hil_test as _;

struct Context {
Expand Down

0 comments on commit 26230a0

Please sign in to comment.