Skip to content

Commit da533b6

Browse files
authored
Merge pull request #32 from Neotron-Compute/spi-experiments
First pass SPI control interface
2 parents ba6fc2f + 0a3bb38 commit da533b6

File tree

14 files changed

+1630
-289
lines changed

14 files changed

+1630
-289
lines changed

.github/workflows/build_and_release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
on: [push, pull_request]
2-
name: Upload Release
2+
name: Build (and Release)
33

44
jobs:
55
build:
6-
name: Build and release
6+
name: Build (and Release)
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
@@ -19,6 +19,9 @@ jobs:
1919
- name: Install flip-link
2020
run: cd / && cargo install --debug flip-link
2121

22+
- name: Build/Test neotron-bmc-protocol
23+
run: cd neotron-bmc-protocol && cargo test
24+
2225
- name: Build neotron-bmc-pico
2326
run: cd neotron-bmc-pico && DEFMT_LOG=info cargo build --release --verbose --target=thumbv6m-none-eabi
2427

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ jobs:
1313
run: cd neotron-bmc-pico && cargo fmt -- --check
1414
- name: Check format neotron-bmc-nucleo
1515
run: cd neotron-bmc-nucleo && cargo fmt -- --check
16+
- name: Check format neotron-bmc-protocol
17+
run: cd neotron-bmc-protocol && cargo fmt -- --check

README.md

Lines changed: 138 additions & 169 deletions
Large diffs are not rendered by default.

neotron-bmc-pico/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ defmt-rtt = "0.3"
1313
heapless= "0.7"
1414
panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
stm32f0xx-hal = { version = "0.17", features = ["stm32f030x6", "rt"] }
16+
neotron-bmc-protocol = { version = "0.1", path = "../neotron-bmc-protocol" }
1617
systick-monotonic = "1.0"
18+
embedded-hal = "*"
1719

1820
[features]
1921
# set logging levels here

neotron-bmc-pico/memory.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MEMORY
22
{
33
/* NOTE K = KiBi = 1024 bytes */
4-
FLASH : ORIGIN = 0x08000000, LENGTH = 16K
4+
FLASH : ORIGIN = 0x08000000, LENGTH = 32K
55
RAM : ORIGIN = 0x20000000, LENGTH = 4K
66
}
77

neotron-bmc-pico/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use defmt_rtt as _; // global logger
66
use panic_probe as _;
77
use stm32f0xx_hal as _; // memory layout // panic handler
88

9+
pub mod ps2;
10+
pub mod spi;
11+
912
// same panicking *behavior* as `panic-probe` but doesn't print a panic message
1013
// this prevents the panic message being printed *twice* when `defmt::panic` is invoked
1114
#[defmt::panic_handler]

0 commit comments

Comments
 (0)