Commit graph

1269 commits

Author SHA1 Message Date
dependabot[bot]
92194c680d
Update os_pipe requirement from 0.9.2 to 1.1.2
Updates the requirements on [os_pipe](https://github.com/oconnor663/os_pipe.rs) to permit the latest version.
- [Release notes](https://github.com/oconnor663/os_pipe.rs/releases)
- [Commits](https://github.com/oconnor663/os_pipe.rs/compare/0.9.2...1.1.2)

---
updated-dependencies:
- dependency-name: os_pipe
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:50 +00:00
dependabot[bot]
67cccbd481
Update cortex-m-semihosting requirement from 0.3.3 to 0.5.0
Updates the requirements on [cortex-m-semihosting](https://github.com/rust-embedded/cortex-m) to permit the latest version.
- [Release notes](https://github.com/rust-embedded/cortex-m/releases)
- [Changelog](https://github.com/rust-embedded/cortex-m/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-embedded/cortex-m/compare/c-m-sh-v0.3.5...v0.5.0)

---
updated-dependencies:
- dependency-name: cortex-m-semihosting
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:44 +00:00
dependabot[bot]
3d41b101bd
Update panic-semihosting requirement from 0.5.2 to 0.6.0
Updates the requirements on [panic-semihosting](https://github.com/rust-embedded/cortex-m) to permit the latest version.
- [Release notes](https://github.com/rust-embedded/cortex-m/releases)
- [Changelog](https://github.com/rust-embedded/cortex-m/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-embedded/cortex-m/compare/v0.5.2...v0.6.0)

---
updated-dependencies:
- dependency-name: panic-semihosting
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:35 +00:00
dependabot[bot]
f7863bd71d
Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:11 +00:00
dependabot[bot]
867d010524
Bump everlytic/branch-merge from 1.1.2 to 1.1.5
Bumps [everlytic/branch-merge](https://github.com/everlytic/branch-merge) from 1.1.2 to 1.1.5.
- [Release notes](https://github.com/everlytic/branch-merge/releases)
- [Commits](https://github.com/everlytic/branch-merge/compare/1.1.2...1.1.5)

---
updated-dependencies:
- dependency-name: everlytic/branch-merge
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:05 +00:00
dependabot[bot]
c5f55519ba
Bump actions/checkout from 1 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 21:09:02 +00:00
bors[bot]
57cc986636
Merge #675
675: enable GitHub Dependabot r=AfoHT a=rursprung

this ensures that the dependencies are kept up to date. see [the docs][] for further information.

[the docs]: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates

Co-authored-by: Ralph Ursprung <ralph.ursprung@gmail.com>
2023-01-03 21:00:30 +00:00
Nathan
80b81ef122
Update example with SRP priority ceiling 2022-12-29 10:21:54 -06:00
Ralph Ursprung
7848190fe6
enable GitHub Dependabot
this ensures that the dependencies are kept up to date. see [the docs][]
for further information.

[the docs]: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
2022-12-28 18:55:20 +01:00
bors[bot]
4d7aeaf6c4
Merge #674
674: CI: Updated to setup-python@v4 r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-22 06:30:57 +00:00
n8tlarsen
27d41c1a38
Revert recommended starting template
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-21 17:02:11 -06:00
Henrik Tjäder
4bae1a5f4b CI: Updated to setup-python@v4 2022-12-21 21:39:06 +01:00
bors[bot]
7788b9065f
Merge #673
673: CI: Run example tests on thumbv8m.* r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-21 20:17:22 +00:00
Henrik Tjäder
9884bcf312 CI: Run example tests on thumbv8m.* 2022-12-21 21:11:01 +01:00
bors[bot]
3541f2cee4
Merge #672
672: CI: Update checkout from v2 to v3 r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-21 20:05:15 +00:00
Henrik Tjäder
e3808744ab CI: Update checkout from v2 to v3 2022-12-21 21:00:10 +01:00
bors[bot]
0f823132bf
Merge #671
671: Docs: fancier meeting redirect r=perlindgren a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-21 19:50:35 +00:00
Henrik Tjäder
171e915696 Add to changelog 2022-12-21 20:27:58 +01:00
Henrik Tjäder
5fce80b243 Docs: fancier meeting redirect 2022-12-21 20:26:32 +01:00
bors[bot]
d3dcb66511
Merge #669
669: CI: Run rustup and cargo directly r=korken89 a=AfoHT

actions-rs seems abandoned: See [link](https://github.com/actions-rs/toolchain/issues/216)

As GHA bundles rustup using it directly is trivial

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-20 06:56:30 +00:00
n8tlarsen
dd1fb68f42
Possessive its
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-19 18:18:04 -06:00
n8tlarsen
c688b601f1
typo
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-19 18:17:06 -06:00
n8tlarsen
70ebcc409f
Clarify BASEPRI and NVIC interaction
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-19 18:16:25 -06:00
n8tlarsen
60132495d9
Expand lock explanation
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-19 17:48:52 -06:00
n8tlarsen
c8d60d2910
Improve basepri explanation
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-19 17:45:53 -06:00
Nathan
f52b5fd1c4 Add documentation for different targets 2022-12-16 11:39:28 -06:00
Henrik Tjäder
d0b3d8b3f2
Remove redundant adding of rustfmt component 2022-12-16 11:30:01 +01:00
Henrik Tjäder
51f1bce077 Forgot cargo... 2022-12-16 00:52:46 +01:00
Henrik Tjäder
6dcd6a564a Changelog 2022-12-16 00:40:59 +01:00
Henrik Tjäder
49f3553943 Add clippy component 2022-12-16 00:28:06 +01:00
Henrik Tjäder
89a1b535b7 Bump swatinem/rust-cache to v2 2022-12-16 00:25:46 +01:00
Henrik Tjäder
ef40dd4b0b CI: Run rustup and cargo directly 2022-12-16 00:18:35 +01:00
bors[bot]
6c1743b553
Merge #668
668: Docs on RTOS r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2022-12-15 21:10:44 +00:00
Henrik Tjäder
10d2a59356 Clippy: Fix (clippy::needless_borrow) 2022-12-15 22:09:09 +01:00
Henrik Tjäder
e31ee3fa11 CI: Update to 22.04 2022-12-15 22:03:55 +01:00
Emil Fresk
d6edeb6a64 Fix CI error caused by critical-section 0.2.8 2022-12-14 21:28:29 +01:00
Emil Fresk
9afb1f888f Docs on RTOS 2022-12-14 21:04:31 +01:00
bors[bot]
a79cc08380
Merge #660
660: Clarify r=AfoHT a=01joja

I made 3 suggested changes

- `.cargo/config` -> `.cargo/config.toml`. Now extensions for vs code recognizes that it is a toml-file.
- Moved a note about how to configure target in cargo.toml to by-example.md from app_init.md.
- changed all occurrences of  `.cargo/config`  to `.cargo/config.toml` in the ru and eng version of the book.


Co-authored-by: Jonas Jacobsson <01joja@gmail.com>
2022-09-28 18:49:50 +00:00
bors[bot]
0539c3ca1a
Merge #661
661: Fix new lint in the compiler r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2022-09-28 18:43:16 +00:00
Emil Fresk
b711c036ab Fix new lint in the compiler 2022-09-28 20:42:16 +02:00
Jonas Jacobsson
ea6f824ad2 added .toml to .cargo/config in book 2022-09-27 15:37:54 +00:00
Jonas Jacobsson
ccbaea82aa .toml and note aboute target 2022-09-27 15:29:03 +00:00
bors[bot]
b87fca3d21
Merge #652
652: Remove use of basepri register on thumbv8m.base r=AfoHT a=neonquill

The basepri register appears to be aviable on thumbv8m.main but not thumbv8m.base. At the very least, attempting to compile against a Cortex-M23 based Microchip ATSAML10E16A generates an error:

```
error[E0432]: unresolved import `cortex_m::register::basepri`
  --> /Users/dwatson/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rtic-1.1.3/src/export.rs:25:5
   |
25 | use cortex_m::register::basepri;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `basepri` in `register`
```

I wasn't sure if it made more sense to replace the `armv7m` config flag with something related to basepri availability or to get closer to matching the cortex-m use of several architecture specific flags. In the end i chose to make the minimal change possible and just narrowed the existing `thumbv8m` check.

Context:
[cortex-m:src/register/mod.rs](4e90862520/src/register/mod.rs (L33)):
```
#[cfg(all(not(armv6m), not(armv8m_base)))]
pub mod basepri;
```

[cortex-m:build.rs](4e90862520/build.rs (L21)):
```
    } else if target.starts_with("thumbv8m.base") {
        println!("cargo:rustc-cfg=cortex_m");
        println!("cargo:rustc-cfg=armv8m");
        println!("cargo:rustc-cfg=armv8m_base");
```

Co-authored-by: David Watson <david@neonquill.com>
2022-07-27 19:15:09 +00:00
David Watson
368ab1d4fb Remove use of basepri register on thumbv8m.base
The basepri register appears to be aviable on thumbv8m.main but not
thumbv8m.base. At the very least, attempting to compile against a
Cortex-M23 based Microchip ATSAML10E16A generates an error:

```
error[E0432]: unresolved import `cortex_m::register::basepri`
  --> /Users/dwatson/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rtic-1.1.3/src/export.rs:25:5
   |
25 | use cortex_m::register::basepri;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `basepri` in `register`
```

This is an attempt to account for the fact that thumbv8m.base (M23)
MCUs don't have the BASEPRI register but have more than 32
interrupts. This moves away from the architecture specific config
flags and switches to a more functional flag.

Make the mask size depend on the max interrupt id

Rather than assuming a fixed interrupt count of 32 this code uses an
array of u32 bitmasks to calculate the priority mask. The size of this
array is calculated at compile time based on the size of the largest
interrupt id being used in the target code. For thumbv6m this should
be equivalent to the previous version that used a single u32 mask. For
thumbv8m.base it will be larger depending on the interrupts used.

Don't write 0s to the ISER and ICER registers

Writing 0s to these registers is a no-op. Since these masks should be
calculated at compile time, this conditional should result in writes
being optimized out of the code.

Prevent panic on non-arm targets

Panicking on unknown targets was breaking things like the doc build on
linux. This change should only panic when building on unknown arm
targets.
2022-07-27 21:04:24 +02:00
bors[bot]
d4816e054b
Merge #653
653: Allow custom `link_section` attributes for late resources r=AfoHT a=vccggorski

This commit makes RTIC aware of user-provided `link_section` attributes,
letting user override default section mapping.

Co-authored-by: Gabriel Górski <gabriel.gorski@volvocars.com>
2022-07-27 18:36:56 +00:00
Gabriel Górski
f15614e7cb Update CHANGELOG.md 2022-07-27 20:29:14 +02:00
Gabriel Górski
b4cfc4db84 Fix missing formatting 2022-07-27 20:25:34 +02:00
Gabriel Górski
c6fd3cdd0a Allow custom link_section attributes for late resources
This commit makes RTIC aware of user-provided `link_section` attributes,
letting user override default section mapping.
2022-07-06 17:43:38 +02:00
bors[bot]
981fa1fb30
Merge #650
650: Release RTIC v1.1.3 r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-06-23 12:01:45 +00:00
Henrik Tjäder
563a3c9d4c Release RTIC v1.1.3 2022-06-23 13:58:50 +02:00