Skip to content

Commit

Permalink
Readme and warnings (#712)
Browse files Browse the repository at this point in the history
* Clean up warnings in HAL PUKCC

* Include all BSPs in README.md, minor example fixes

* README refresh, moves some content to wiki
  • Loading branch information
ianrrees authored Jan 4, 2024
1 parent 3b60d03 commit 4e7f8ef
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 312 deletions.
380 changes: 74 additions & 306 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion boards/feather_m0/examples/adalogger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use hal::delay::Delay;
use hal::pac::{interrupt, CorePeripherals, Peripherals};
use hal::prelude::*;
use hal::rtc;
use hal::time::U32Ext;
use hal::usb::UsbBus;

use heapless::String;
Expand Down
5 changes: 4 additions & 1 deletion boards/neokey_trinkey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ optional = true
version = "0.7"
optional = true


[dependencies.atsamd-hal]
version = "0.14"
default-features = false
Expand Down Expand Up @@ -58,6 +57,10 @@ required-features = ["leds"]
name = "button"
required-features = ["leds", "unproven"]

[[example]]
name = "rainbow"
required-features = ["leds"]

[[example]]
name = "usb_echo"
required-features = ["usb"]
4 changes: 4 additions & 0 deletions boards/qt_py_m0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ rt = ["cortex-m-rt", "atsamd-hal/samd21e-rt"]
unproven = ["atsamd-hal/unproven"]
use_semihosting = []
usb = ["atsamd-hal/usb", "usb-device"]

[[example]]
name = "usb_echo"
required-features = ["usb"]
1 change: 1 addition & 0 deletions boards/wio_lite_w600/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ name = "blinky_basic"

[[example]]
name = "usb_ack"
required-features = ["usb"]
2 changes: 2 additions & 0 deletions hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
- Add compile error for combined `library` and `dma` features
- Add `dma` feature to docs metadata
- Update the PACs to svd2rust 0.30.2.
- Fix warnings for thumbv7 targets
- Update README.md - moves some content to wiki

# v0.16.0

Expand Down
8 changes: 4 additions & 4 deletions hal/src/thumbv7em/pukcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl Pukcc {
};
let mut pukcl_params = c_abi::PukclParams::default();
unsafe {
let mut service_params = &mut pukcl_params.params.ZpEcDsaGenerateFast;
let service_params = &mut pukcl_params.params.ZpEcDsaGenerateFast;
service_params.nu1ModBase = modulo_p.pukcc_base();
service_params.nu1CnsBase = cns.pukcc_base();
service_params.u2ModLength = C::MOD_LENGTH as u16;
Expand Down Expand Up @@ -452,7 +452,7 @@ impl Pukcc {
};
let mut pukcl_params = c_abi::PukclParams::default();
unsafe {
let mut service_params = &mut pukcl_params.params.ZpEcDsaVerifyFast;
let service_params = &mut pukcl_params.params.ZpEcDsaVerifyFast;
service_params.nu1ModBase = modulo_p.pukcc_base();
service_params.nu1CnsBase = cns.pukcc_base();
service_params.u2ModLength = C::MOD_LENGTH;
Expand Down Expand Up @@ -664,7 +664,7 @@ impl Pukcc {
pukcl_params.header.u2Option = PUKCL_EXPMOD_EXPINPUKCCRAM
| window_size.get_windows_size_mask()
| mode.get_mode_mask();
let mut service_params = &mut pukcl_params.params.ExpMod;
let service_params = &mut pukcl_params.params.ExpMod;
service_params.nu1XBase = output.pukcc_base();
service_params.nu1ModBase = modulus_cr.pukcc_base();
service_params.nu1CnsBase = cns_cr.pukcc_base();
Expand Down Expand Up @@ -731,7 +731,7 @@ impl Pukcc {
unsafe {
// Flag that switches behaviour of `RedMod` service into CNS generator
pukcl_params.header.u2Option = PUKCL_REDMOD_SETUP;
let mut service_params = &mut pukcl_params.params.RedMod;
let service_params = &mut pukcl_params.params.RedMod;
service_params.nu1ModBase = modulus_cr.pukcc_base();
service_params.nu1CnsBase = cns_cr.pukcc_base();
service_params.u2ModLength = modulus.len() as _;
Expand Down

0 comments on commit 4e7f8ef

Please sign in to comment.