Commit Graph
103 Commits
Author SHA1 Message Date
datdenkikniet 4ca2c53380 Add DEFMT_LOG env variable 2023-05-01 01:21:37 +02:00
datdenkikniet 6ac3019c4d Add missing use 2023-05-01 01:19:13 +02:00
Emil FreskandGitHub 9c7df1a7bd Merge pull request #1 from datdenkikniet/v2
Update to v2 + merge main repo
2023-04-22 22:19:40 +02:00
datdenkikniet ff4a353b7a Get rid of this comment 2023-04-22 22:18:57 +02:00
datdenkikniet 0492e028b8 Use brtt instead of rtt 2023-04-22 22:16:50 +02:00
datdenkikniet 2883ed103a Merge remote-tracking branch 'knurling/main' into v2 2023-04-22 22:16:47 +02:00
datdenkikniet 1b3f6cc68f Update to v2 2023-04-22 22:04:30 +02:00
Johann HemmannandGitHub 141f45e8a9 Add note about RP2040 BSPs (#69) 2023-02-07 11:30:40 +01:00
Johann HemmannandGitHub 12bd48a88d Update Cargo.toml (#67)
* Update `defmt-rtt`

* Omit patch version from dependencies

* Format `Cargo.toml`

* Switch to rust 2021 edition

* Use `opt-level = 'z'` again

* Re-enable `lto`
2022-10-18 17:25:46 +02:00
Emil Fresk fb03cda302 More clarifications 2022-07-02 20:09:29 +02:00
Emil Fresk 750fb8b5d5 Update deps 2022-07-02 13:09:53 +02:00
Johann HemmannandGitHub 5413c2c24b Fix lto option in cargo profile (#64)
Raised in https://github.com/knurling-rs/app-template/pull/61#issuecomment-1166687101.
2022-06-27 14:46:28 +02:00
Jorge AparicioandGitHub b4327d0259 Disable LTO (#61)
to work around rust-lang/rust#90357
2022-01-05 12:36:38 +01:00
Emil Fresk 706ffce2fc Updated to RTIC 1.0 and defmt 0.3 2022-01-03 19:02:57 +01:00
Jorge AparicioandGitHub 47277bbf9d add unit tests (#60)
also, flatten the workspace into a single crate. I forget what the original reason for the workspace
was -- I think it was added because `cargo t -p testsuite` is nicer than running
`cargo t --test $filename` N times. However, a single crate removes the need to repeat the list of
dependencies in `testsuite/Cargo.toml`

also, document the two sets of tests included with the template and how to run them in the README
file
2022-01-03 11:29:08 +01:00
Anatol UlrichandGitHub d82fad8c96 Add documentation for https://github.com/knurling-rs/defmt/issues/628 (#58) 2021-11-26 18:35:42 +01:00
BriocheBerlinandGitHub 09cb051ef0 Updates nrf-hal version to 0.14.0 to resolve dependency conflicts. (#57) 2021-11-24 16:45:48 +01:00
Jorge AparicioandGitHub 733a38a272 update defmt deps to v0.3 (#56)
* bump defmt to v0.3

remove Cargo features which are no longer needed

* remove `timestamp!`

it's no longer mandatory and a monotonic counter does not add much value given that `defmt-rtt`
works by disabling interrupts so one won't see logs out of order anyways (which would the case for a
lock-free multi-channel `Logger`)

* use println! in most the examples

so that all examples print something when `DEFMT_LOG` is unset

* make overflow example terminate in less steps

also include an estimate of the stack pointer to show the stack grows downwards towards the RAM
boundary
2021-11-10 04:46:56 +01:00
Emil Fresk 4afa0738e7 Updated RTIC version 2021-11-09 14:22:17 +01:00
Emil Fresk 83262e5942 Specialized for RTIC 2021-09-21 11:39:45 +02:00
BriocheBerlinandGitHub 265b7f2878 Removes call to fill in user survey from readme. (#53) 2021-08-19 15:40:51 +02:00
BriocheBerlinandGitHub 775f94626e Update README.md (#52) 2021-07-15 18:21:48 +02:00
Johann HemmannandGitHub 52981902eb Merge pull request #51 from Sh3Rm4n/main
Disable test harness for lib target
2021-06-06 23:33:41 +02:00
Fabian Viöl 1ebc0ac43f Disable test harness for lib target
Without this change, if `testsuite/src/lib.rs` will be crated and `cargo
test` is invoked, cargo will try to link libtest with the crate.

As this crate is `no_std` and will usually be run for targets, where no
std library exists and therefor also no libtest, this will fail with an
error similar to this:

    error[E0463]: can't find crate for `test`

    error: aborting due to previous error

    For more information about this error, try `rustc --explain E0463`.
    error: could not compile `testsuite`

To circumvent this issue, disable the harness for lib as well.

Because the crates lib.rs is handled as a binary for test mode,
rust will look for a main function.
Add a minimal lib.rs, so that it will compile and run, when
test is invoked.
2021-06-06 16:10:08 +02:00
Jorge AparicioandGitHub ec32e79165 Merge pull request #50 from knurling-rs/fix-format
`README`: Fix formatting
2021-05-10 12:51:07 +00:00
Johann Hemmann 93e4f21e4f README: Fix formatting 2021-05-10 14:42:01 +02:00
Johann HemmannandGitHub 9e46054e03 Merge pull request #49 from knurling-rs/doc-ra-linked-projects
`README.md`: Document `rust-analyzer.linkedProjects`
2021-04-13 13:05:09 +02:00
Urhengulas 5737b08a58 README.md: Document rust-analyzer.linkedProjects 2021-04-13 11:44:19 +02:00
Johann HemmannandGitHub d0aa56c67d Merge pull request #42 from knurling-rs/update-defmt-0.2.0
Update to defmt 0.2.0
2021-02-26 23:04:48 +01:00
Jorge AparicioandGitHub 7cd0af3b4f Merge pull request #48 from afajl/main
Document that compilation target must be added with rustup
2021-02-26 14:05:38 +01:00
Paul Diaconescu 59b7c6a1f3 Add missing backticks 2021-02-26 10:16:48 +01:00
Johann HemmannandGitHub 4e9a879cec Update README.md 2021-02-26 09:26:23 +01:00
Paul Diaconescu 99a17be671 Document that compilation target must be added with rustup 2021-02-25 23:03:14 +01:00
Jorge AparicioandGitHub 08ebad9350 Merge pull request #43 from knurling-rs/test-release-debuginfo
add debuginfo to `test --release`
2021-02-24 15:26:59 +01:00
Jorge Aparicio c915534a05 add debuginfo to test --release 2021-02-24 14:58:50 +01:00
Jonas SchievinkandGitHub b61bdada9b Merge pull request #44 from knurling-rs/optimize-test-profile
also enable optimizations in the `test` profile
2021-02-24 14:53:51 +01:00
Jorge Aparicio 9200fbe95d also enable optimizations in the test profile
Cargo doc says:

> Note that when using the cargo test and cargo bench commands, the test/bench profiles only apply to the final test executable. Dependencies will continue to use the dev/release profiles.

So with the current settings, `cargo test` optimizes all dependencies but not the top level
crate (e.g. `test/foo.rs`)

This commit adds optimizations to the last `rustc` invocation of `cargo test`. This results in a 6%
reduction in binary size when doing `cargo test` on our sample test file.
2021-02-24 14:43:35 +01:00
Urhengulas 34b68a19f1 Get timestamp with interrupt disabled
This makes `app-template` support more platforms (i.e. `thumbv6`).
2021-02-22 23:26:47 +01:00
Urhengulas d1c9fa9920 Update docs 2021-02-22 22:30:25 +01:00
Urhengulas 5f8bc597c0 Update example code 2021-02-22 22:24:38 +01:00
Urhengulas 1d0750653f Update dependencies 2021-02-22 22:16:41 +01:00
Jonas SchievinkandGitHub 19ec8c4dce Merge pull request #39 from knurling-rs/update_readme
README.md: update to new probe-run usage, new nrf hal version
2021-01-21 20:09:54 +01:00
Lotte Steenbrink 55b8b30624 README.md: update to new probe-run usage, new nrf hal version 2021-01-21 20:04:07 +01:00
Lotte SteenbrinkandGitHub 9fc4f7bc5e Merge pull request #37 from knurling-rs/rm-dead-link
Remove dead link to patch
2020-12-21 14:50:29 +01:00
Jonas Schievink 5dd8a83db8 Remove dead link to patch 2020-12-21 14:44:17 +01:00
Jorge AparicioandGitHub d6d88d27e2 Merge pull request #33 from knurling-rs/override-assert-macros
testsuite: import defmt assert macros
2020-12-11 12:03:44 +00:00
Jorge Aparicio 2a34a5279d testsuite: import defmt assert macros
these imports will override the ones from the core prelude
2020-12-11 12:29:03 +01:00
Jorge AparicioandGitHub d75aea3ce0 Merge pull request #31 from knurling-rs/jonas-schievink-patch-1
Actually use the defmt assertion macros
2020-12-07 10:37:10 +00:00
Jorge AparicioandGitHub 2063370ab7 Merge pull request #32 from knurling-rs/jonas-schievink-patch-2
Remove `--defmt` flag from probe-run
2020-12-07 10:35:32 +00:00
Jonas SchievinkandGitHub 7c4954fd67 Remove --defmt flag from probe-run
This now gets automatically detected
2020-12-03 00:16:14 +01:00