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

Tremoneck update pac #2

Merged
merged 26 commits into from
Oct 25, 2023
Merged

Conversation

Tremoneck
Copy link
Owner

Summary

[describe your changes here]

Checklist

  • CHANGELOG.md for the BSP or HAL updated
  • All new or modified code is well documented, especially public items
  • No new warnings or clippy suggestions have been introduced (see CI or check locally)

If Adding a new Board

  • Board CI added to crates.json
  • Board is properly following "Tier 2" conventions, unless otherwise decided to be "Tier 1"

If Adding a new cargo feature to the HAL

  • Feature is added to the test matrix for applicable boards / PACs in crates.json

jsh3lly and others added 26 commits May 14, 2023 15:38
…o Terminal (atsamd-rs#624)

* Edited the Cargo.toml file to include a dependency for the snake game and also added code for the snake game under examples

* Added entry for snake

* Formatting changes for rustfmt

* Added LED indicator to let player know that the game is over. Also made accidental self intersection by trivially changing direction to opposite impossible

* Update CHANGELOG.md
* Nvm: Derive Copy and Clone for `nvm::Bank`

* Nvm: refactor focused on extending the userpage API

Overview:

- Make the NVM bitfield structs' methods public
- Add setters for the `Userpage` bitfield struct
    - CalibrationArea and TemperaturesCalibrationArea do not need
    setters as they cannot be modified.
- Extend the `Userpage` struct to cover the whole page (512 bytes)
- Split `Nvm::write` and `Nvm::erase` method into "main address space
flash" and "userpage flash" oriented APIs
- Add idempotent `Nvm::modify_userpage` (avoids unnecessary
flash erase & write)

Breaking changes:
- Switch to `*mut 32` from `u32` for address arguments
- `Nvm::userpage` -> `Nvm::read_userpage`
- `Nvm::write` -> `Nvm::write_flash`
- `Nvm::write_from_slice` -> `Nvm::write_flash_from_slice`
- `Nvm::erase` -> `Nvm::erase_flash`
    Note:
        Block erase granularity is assumed for main address space
        flash erasure; thus `granularity` disappeared from the
        signature.

* Nvm: expose extra commands and raw registers

New methods providing access to the following NVM commands
- SSB (Enable Security Bit)
- CELCK (Enable Chip-Erase Lock)
- CEULCK (Disable Chip-Erase Lock)

Also, expose unsafely underlying `NVMCTRL` register type as an
escape hatch (`Nvm::registers`).

* Add NVM API changes to CHANGELOG

* Refactor error handling in NVMCTRL

* Add `region_lock` API

* Fix and invert the condition

* Update CHANGELOG.md

* Clarify region lock doc comment

---------

Co-authored-by: Gabriel Górski <gabriel.gorski@volvocars.com>
* Add defmt feature and derive error types (atsamd-rs#684)
* Make fugit obligatory dependency

* Move time module to use fugit

* prelude

* timer_params

* rtc

* sercom::i2c

* sercom::spi

* sercom::uart

* sleeping_delay

* thumbv7em::clock::v2:dfll

* thumbv7em::clock::v2::dpll

* thumbv7em::clock::v2::gclk

* thumbv7em::clock::v2::osculp32k

* thumbv7em::clock::v2::rtcosc

* thumbv7em::clock::v2::xosc

* thumbv7em::clock::v2::xosc32k

* thumbv7em::clock::v1

* thumbv7em::timer

* thumbv7em::pwm

* thumbv6m::clock

* thumbv6m::timer

* thumbv6m::pwm

* delay

* Add re-export of fugit

* BSC Tier I Update

* Update CHANGELOG

* Update CAN related code
Overlooked example that failed to compile in atsamd-rs#672.
* Debug, Clone, Copy, Eq, PartialEq for all errors types
Co-authored-by: Adrian Geipert <adrian.git@geipert.eu>
- TC4 APB clock should be disabled by default
Prepare crates for v0.16.0 release
* Update atsamd-hal to 0.16 and add built-in pin definitions

* Add LED and VBatt sensor pins. Update each of 3 examples to use new atsamd-hal API

* Update version number and changelog

* arduino_mkrzero: add blinky_rtic example

Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>

* fix fmt

Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>

* Update blinky RTIC example to work with latest BSP changes

---------

Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>
Co-authored-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>
* Fix release HAL crate workflow

* Fix pyportal nightly build
@Tremoneck Tremoneck merged commit 932f2e9 into Tremoneck:updatePAC Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants