Skip to content

Commit

Permalink
Move around platform/runner/board, lowering nesting complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Stalder authored and nickray committed Feb 26, 2021
1 parent 1f3102a commit 4e8a83d
Show file tree
Hide file tree
Showing 39 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RUNNER := platforms/lpc55/runner
RUNNER := runners/lpc55

build-dev:
make -C $(RUNNER) build-dev

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ Install [Rust and Cargo](https://www.rust-lang.org/tools/install) for your syste

### Boards

Head to [platforms/lpc55/board](platforms/lpc55/board) for an overview on the possible embedded platforms the firmware
Head to [runnners/lpc55/board](runners/lpc55/board) for an overview on the possible embedded platforms the firmware
currently supports.

### Compiling

Head to [platforms/lpc55/runner](platforms/lpc55/runner) to get started, and try `make build-dev`, which compiles
Head to [runners/lpc55](runners/lpc55) to get started, and try `make build-dev`, which compiles
the entire firmware bundle using features convenient for getting started.

With `make run-dev`, it will try to connect to a GDB server to flash and run the firmware.
One way to run a GDB server is `JLinkGDBServer -strict -device LPC55S69 -if SWD -vd`

To enable logs, you can change the feature flags on each crate. Then logs will be output via semihosting to your SWD debugger.
```
Expand Down
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions platforms/lpc55/runner/Cargo.toml → runners/lpc55/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ usbd-serial = "0.1.0"
trussed = { git = "https://github.com/trussed-dev/trussed", branch = "main", features = ["clients-3"] }

# board
board = { path = "../board" }
board = { path = "board" }

# components
apdu-dispatch = {path = "../../../components/apdu-dispatch"}
applet-fido = {path = "../../../components/applet-fido"}
applet-ndef = {path = "../../../components/applet-ndef"}
applet-root = {path = "../../../components/applet-root"}
c-stubs = { path = "../../../components/c-stubs" }
ctap-types = { path = "../../../components/ctap-types" }
fido-authenticator = { path = "../../../components/fido-authenticator" }
fm11nc08 = {path = "../../../components/fm11nc08"}
hid-dispatch = {path = "../../../components/hid-dispatch"}
iso14443 = {path = "../../../components/iso14443"}
piv-authenticator = { path = "../../../components/piv-authenticator", features = ["applet"] }
usbd-ccid = { path = "../../../components/usbd-ccid" }
usbd-ctaphid = { path = "../../../components/usbd-ctaphid" }
apdu-dispatch = {path = "../../components/apdu-dispatch"}
applet-fido = {path = "../../components/applet-fido"}
applet-ndef = {path = "../../components/applet-ndef"}
applet-root = {path = "../../components/applet-root"}
c-stubs = { path = "../../components/c-stubs" }
ctap-types = { path = "../../components/ctap-types" }
fido-authenticator = { path = "../../components/fido-authenticator" }
fm11nc08 = {path = "../../components/fm11nc08"}
hid-dispatch = {path = "../../components/hid-dispatch"}
iso14443 = {path = "../../components/iso14443"}
piv-authenticator = { path = "../../components/piv-authenticator", features = ["applet"] }
usbd-ccid = { path = "../../components/usbd-ccid" }
usbd-ctaphid = { path = "../../components/usbd-ctaphid" }

# panic
panic-halt = "0.2.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4e8a83d

Please sign in to comment.