Skip to content

Commit ab13fde

Browse files
committed
examples: rearrange binaries to allow rust-analyzer check
Exclude those binaries in github workflow Small fix on module `pad`: make pad_config private Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
1 parent 36379d6 commit ab13fde

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

.github/workflows/test-and-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- uses: Swatinem/rust-cache@v2
3333
- name: Run tests
3434
run: |
35-
cargo test --workspace --exclude sophgo-rom-rt
35+
cargo test --workspace --exclude sophgo-rom-rt --exclude blinky --exclude hello-world

examples/blinky/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,3 @@ sophgo-hal = { version = "0.0.0", path = "../../sophgo-hal" }
1414
panic-halt = "0.2.0"
1515
riscv = "0.11.0"
1616
embedded-hal = "1.0.0"
17-
18-
[[bin]]
19-
name = "blinky"
20-
test = false
21-
bench = false

examples/hello-world/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,3 @@ panic-halt = "0.2.0"
1414
riscv = "0.11.0"
1515
embedded-io = "0.6.1"
1616
embedded-hal = "1.0.0"
17-
18-
[[bin]]
19-
name = "hello-world"
20-
test = false
21-
bench = false

sophgo-hal/src/pad.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl<A: BaseAddress, const N: usize, F> Pad<A, N, F> {
181181
}
182182
}
183183
#[inline]
184-
pub fn pad_config(&self) -> &RW<PadConfig> {
184+
fn pad_config(&self) -> &RW<PadConfig> {
185185
match N {
186186
// TODO in range of power pads ...
187187
49 => unsafe { &*(self.base.ptr() as *const PwrPadConfigs) }.pad_config::<N>(),

0 commit comments

Comments
 (0)