Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme and warnings #712

Merged
merged 3 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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