| Age | Commit message (Collapse) | Author |
|
476: reclaim stack space used in late init r=korken89 a=conorpp
Fixes #474.
Tested that there is no longer any stack overhead leftover from moving init resources.
(made mistake force pushing with last PR when trying to fix lint)
The expansion for an example with 2 buffers as resources changes from:
```rust
let (late, mut monotonics) = crate::APP::init(init::Context::new(core.into()));
__rtic_internal_mybuffer.as_mut_ptr().write(late.mybuffer);
__rtic_internal_mybuffer2.as_mut_ptr().write(late.mybuffer2);
rtic::export::interrupt::enable();
crate::APP::idle(idle::Context::new(&rtic::export::Priority::new(0)))
```
to:
```rust
#[inline(never)]
fn __rtic_init_resources<F>(f: F)
where
F: FnOnce(),
{
f();
}
__rtic_init_resources(|| {
let (late, mut monotonics) = crate::APP::init(init::Context::new(core.into()));
__rtic_internal_mybuffer.as_mut_ptr().write(late.mybuffer);
__rtic_internal_mybuffer2.as_mut_ptr().write(late.mybuffer2);
rtic::export::interrupt::enable();
});
crate::APP::idle(idle::Context::new(&rtic::export::Priority::new(0)))
```
Co-authored-by: Conor Patrick <conorpp94@gmail.com>
|
|
|
|
471: Force push to gh-pages branch r=korken89 a=AfoHT
As suggested in https://github.com/rtic-rs/rfcs/pull/48#issuecomment-815730654
Co-authored-by: Henrik Tjäder <henrik@grepit.se>
|
|
|
|
465: update russian translation of the book r=korken89 a=burrbull
Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
|
|
468: Tiny fix of README-link r=korken89 a=AfoHT
Want to try GH-pages rebuild by GHA
Co-authored-by: Henrik Tjäder <henrik@grepit.se>
|
|
Want to try GH-pages rebuild by GHA
|
|
467: 0.6.0-alpha.2 release r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
|
|
|
|
|
|
466: Fix for type aliases in `mod app`, UB in `spawn_at`, and `#[cfg]` in hardware tasks r=AfoHT a=korken89
Type aliases such as the following did not work in `0.6-alpha`:
```rust
use rtic::app;
#[app(device = lm3s6965, dispatchers = [SSI0])]
mod app {
type Test = u32;
#[task]
fn t1(_: t1::Context, _val: Test) {}
}
```
Plus that accessing associated constants of monotonic timers was not working as it should dues to the syntax and codegen transforming:
```rust
#[monotonic(binds = SysTick, default = true)]
type MyMono = DwtSystick<8_000_000>; // 8 MHz
```
into
```rust
mod MyMono {
// ...
}
```
causing the original `type MyMono` to not exist anymore.
This PR fixes this and adds test to check for this by doing the following expansion instead:
```rust
#[monotonic(binds = SysTick, default = true)]
type MyMono = DwtSystick<8_000_000>; // 8 MHz
```
into
```rust
type MyMono = DwtSystick<8_000_000>;
mod monotonics {
mod MyMono {
// ...
}
// And other monotonics go here as well
}
```
**Breaking change**
This causes a breaking change in accessing the `MyMono::now()` method which now exists under `monotonics::MyMono::now()`.
---
Moreover a UB issue was found and fixed in `spawn_at` and hardware tasks properly propagate `#[cfg]`s.
Closes #460
Closes #462
Closes #463
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
|
|
|
|
|
|
456: Cancel/reschedule support for monotonics r=AfoHT a=korken89
Design document: https://hackmd.io/lhUCzrKBS-66aadO4KsSzw?view
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
|
|
|
|
|
|
Support cfgs in the imports
Account for extern tasks
|
|
Use wrapping add for marker
No need to store handle to queue
Remove unnecessary `SpawnHandle::new`
Fix test
Updated interface to follow proposal
|
|
|
|
Macros version
|
|
|
|
454: Add periodic GHA job to run cargo audit r=korken89 a=AfoHT
With the recent generic-array issue affecting heapless it seems wise to stay up to date with the latest advisories.
Co-authored-by: Henrik Tjäder <henrik@grepit.se>
|
|
|
|
436: New monotonic r=AfoHT a=korken89
Design document: https://hackmd.io/vWa9GvssR8qBfUYgMZm0CQ
Closes #433
Closes #432
Closes #427
Closes #426
Closes #403
Closes #332
Closes #312
Closes #309
Closes #299
Closes #292
Closes #247
Closes #219
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
|
|
|
|
Cleanup of tests, solve duplicate panic handler error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test fixes
|
|
|
|
|
|
Fmt fixes
Spawn_after did not work with parameters
Examples working again
Revert "GHA update"
This reverts commit e0a71d4859966a6c5cf2629d3cb27e88acada9c0.
Readd flags
Only add DWT based dep with __v7 flag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445: Minor grammar correction r=korken89 a=barnabywalters
you -> your
Co-authored-by: Barnaby Walters <barnaby@waterpigs.co.uk>
|