Commit graph

198 commits

Author SHA1 Message Date
Emil Fresk
3e65a83110 Fix CI with 1.80 2024-08-07 21:09:58 +02:00
Finomnis
5cafe9dd0b
Fix STM32 Monotonic for peripherals with only two Clock Compare modules (#960)
* Update dependencies of stm32g0 timer example

* Replace obsolete probe-run with probe-rs run

* Modify stm32 monotonic to work with timers that have only 2 compare modules

* Add changelog

* Fix typo
2024-07-05 16:19:51 +00:00
Milton Eduardo Sosa
624f643a97
Add example for STM32F411 with HW & SW tasks communicating via MPSC channel (#953)
* Add example with HW & SW tasks communicating via MPSC channel

* example: f411-adc-mpcsc: nit: typos

* example: f411-adc-mpsc: prefer text over picture

---------

Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-06-26 17:35:48 +00:00
Milton Eduardo Sosa
35891f4559
Add ADC example for STM32F411 (#952)
* Add ADC example for STM32F411

* Update dependencies

* Update RTIC version

* example: f411-adc: prefer text over picture

* example: f411-adc: nit: typo

---------

Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-06-26 17:35:43 +00:00
Emil Fresk
861a63dbe3 Update embedded-hal-bus to 0.2 and fix portable-atomic features 2024-06-23 09:20:32 +02:00
Henrik Tjäder
918f9c3f13
Breaking change: portable-atomic (#922)
* Atomics: Replace polyfill with portable-atomic

* Update Cargo.lock for examples

* RTIC: portable-atomic: Update changelog

* rtic-monotonics: portable-atomic: Update changelog

* lm3s6965: enable critical-section when testing

* xtask: Enable portable-atomic/critical-section

When dealing with rtic-monotonics

* rtic-monotonics: portable-atomics: Do not disable the ability to fallback

---------

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2024-06-23 06:45:49 +00:00
broke
ed7ed50c25
updated esp32c3 dependency to version 0.22.0 (#937)
* Update Cargo.toml esp32c3 dependency

* fixed esp32c3 example to build with esp32c3=0.22.0 dependency

* added CHANGELOG.md entry for esp32c3 version update
2024-05-22 17:38:20 +00:00
Martins Polakovs
5d05d607ee
Bump rp2040-pac to 0.6 in rtic-monotonics (#905)
* Support rp2040-pac v0.6 in rtic-monotonics

* Add changelog entry

* Fix rp2040_local_i2c_init example
2024-04-21 10:46:29 +00:00
Román Cárdenas Rodríguez
acb9f44642
Use riscv-slic form crates.io (#919)
* use riscv-slic form crates.io

* address comments
2024-04-17 09:12:16 +00:00
Finomnis
8c23e178f3
Monotonic rewrite (#874)
* Rework timer_queue and monotonic architecture

Goals:
 * make Monotonic purely internal
 * make Monotonic purely tick passed, no fugit involved
 * create a wrapper struct in the user's code via a macro that then
   converts the "now" from the tick based monotonic to a fugit based
   timestamp

We need to proxy the delay functions of the timer queue anyway,
so we could simply perform the conversion in those proxy functions.

* Update cargo.lock

* Update readme of rtic-time

* CI: ESP32: Redact esp_image: Too volatile

* Fixup: Changelog double entry rebase mistake

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-04-10 22:00:38 +00:00
Henrik Tjäder
e4cc5fd17b
CI: Add ESP32-C3 QEMU support (#914)
* CI: ESP32-C3: QEMU support

* CI: ESP32C3: Script for preparing and running

* CI: gitignore qemu.log

* ESP32-C3: Example sw_and_hw output
2024-04-10 18:35:14 +00:00
onsdagens
906278e310
Adjust esp32c3 codegen, bump pac to 0.21.0 (#906)
* adjust esp32c3 codegen, bump pac to 0.21.0

* add esp32c3 example

* adjust workflow flags

* CI: Fix esp32c3 comment

* esp32c3: Remove commented out git-dep

* CI: Actually check the ESP32-C3 examples

* Autoformat rtic/cargo.toml

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-04-04 09:35:41 +00:00
Franz Dietrich
53ed7bf7ed
fix included examples and markdown(book) (#912)
* fix included examples and markdown(book)

fixes: #911

* fix footnote pre_init

* more example link updates

* Restore pool example name

* Example: pool: Upgrade to heapless v0.8

* Example: pool: thumbv6 unsupported: wild cfg-if

Experiment with multi-backend example contained in the example

* Example: lm3s6965: Updated cargo.lock

* Book: Use cargo xtask for by-example

* Docs: Contributing: cargo xtask

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-04-03 22:01:46 +00:00
Román Cárdenas Rodríguez
4060c3def8
RISC-V support over CLINT (#815)
* Rebase to master

* using interrupt_mod

* bug fixes

* fix other backends

* Add changelog

* forgot about rtic-macros

* backend-specific configuration

* core peripherals optional over macro argument

* pre_init_preprocessing binding

* CI for RISC-V (WIP)

* separation of concerns

* add targets for RISC-V examples

* remove qemu feature

* prepare examples folder

* move examples all together

* move ci out of examples

* minor changes

* add cortex-m

* new xtask: proof of concept

* fix build.yml

* feature typo

* clean rtic examples

* reproduce weird issue

* remove unsafe code in user app

* update dependencies

* allow builds on riscv32imc

* let's fix QEMU

* Update .github/workflows/build.yml

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>

* New build.rs

* removing test features

* adapt ui test to new version of clippy

* add more examples to RISC-V backend

* proper configuration of heapless for riscv32imc

* opt-out examples for riscv32imc

* point to new version of riscv-slic

* adapt new macro bindings

* adapt examples and CI to stable

* fix cortex-m CI

* Review

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-03-20 20:06:47 +00:00
Emil Fresk
0b365f03eb Release rtic v2.1.0, rtic-macros v2.1.0 2024-02-27 13:51:47 +01:00
cschuhen
b1467c62b4
Add example of using Embassy HAL(stm32) with RTIC. (#891)
The RTIC book mentions Embassy+RTIC but gives no examples.

fmt.

Add feature flag

Seems CI does not deal with 2 levels of depth.

Forgot to stage.

Thumb m arch.

Co-authored-by: Corey Schuhen <cschuhen@gmail.com>
2024-02-27 11:25:07 +00:00
Emil Fresk
2798500957 Make RTIC 2 work on stable by using main's stack as an allocator 2024-02-27 12:22:18 +01:00
Finomnis
89160b7cb9
Fix nrf monotonics (#852)
* Fix nrf::timer

* Bootstrap nrf52840-blinky example

* More work on nrf blinky example

* Fix README

* Add asserts for correct timer functionality

* Add correctness check to other monotonics as well

* Update Changelog

* Fix potential timing issues

* Fix race condition in nrf::rtc

* Add changelog

* Add rtc blinky example

* Change rtc example to RC lf clock source

* Add changelog to rtic-time

* Add changelog

* Attempt to fix CI

* Update teensy4-blinky Cargo.lock
2023-12-06 07:49:38 +00:00
Milton Eduardo Sosa
207f7dba48
Add RTC interrupt example for stm32f411 (#853)
* Add RTC example for stm32f411

* Remove svd file

---------

Co-authored-by: Milton Eduardo Sosa <milton.eduardo.sosa@gmail.com, milton@switch-ev.com>
2023-12-04 17:19:24 +00:00
Emil Fresk
3de5f793f3
Fix rp2040 example (#855) 2023-12-04 12:49:24 +01:00
Finomnis
612a47ef4d
Fix mono delay (#843)
* rtic-time: Compenstate for timer uncertainty

* Update changelog and incorrect cargo.lock in an example

* Fix Monotonic impls

* Fix tests

* Fix other monotonics, again

* Update changelog

* Fix example

* Fix DelayUs and DelayMs impls

* Minor coding style fix in u64 conversions

* Fix all changelogs

* Fix changelog

* Fix blocking DelayUs

* Minor monotonic rework

* Add delay precision test

* Add more tests

* Add rust-version tags to Cargo.toml

* Fix imxrt, rp2040 and systick timer

* Fix more monotonics

* Fix systick monotonic

* Some reverts

* Fix imxrt

* Fix nrf

* Fix rp2040

* Fix stm32

* Fix systick

* Fix rtic-time tests

* Bump to e-h.rc2

* Apply e-h.rc2 fixes to rtic-time

* Apply fixes from arbiter

* Fix clippy warning

* Minor beautification

* Revert previous changes

* Fix variable name

* Add blocking tests, but disable them by default
2023-12-01 07:59:22 +00:00
Finomnis
994884ffb7 Fix comment 2023-11-08 19:43:09 +00:00
Finomnis
b5f9579b90 Use imxrt-uart-panic crate instead of custom panic handler 2023-11-08 19:43:09 +00:00
Finomnis
2fd3b3c404 Add Monotonic for i.MX RT chip family 2023-11-08 19:43:09 +00:00
Henrik Tjäder
1967058784 Examples: Update deps
Bumps proc-macro2 fixing https://github.com/rust-lang/rust/issues/113152
2023-07-01 04:00:30 +00:00
Emil Fresk
c3884e212c v2.0 release 2023-05-25 08:27:58 +02:00
datdenkikniet
5b705ddaf4 Don't build core and alloc & update Cargo.lock 2023-05-11 19:20:58 +02:00
Emil Fresk
67d5ade4fd Fix zero prio tasks when all async tasks have default (no) arguments 2023-05-10 16:26:52 +02:00
Emil Fresk
ce3804dc92 Prepare release of rtic-monotonics with new eha version 2023-04-23 21:49:57 +02:00
Michael Kefeder
cb1cc4d495 comment on how to link on macOS apple silicon machine 2023-04-19 22:02:32 +02:00
datdenkikniet
76d2d27def Fix example 2023-04-17 07:55:33 +02:00
datdenkikniet
cba786529a examples: pin to specific version 2023-04-16 13:08:46 +02:00
datdenkikniet
093d64500d examples: commit Cargo.lock files 2023-04-16 13:08:46 +02:00
datdenkikniet
0411ed10b1 stm32f3_blinky: update to latest version 2023-04-16 13:08:36 +02:00
datdenkikniet
dc02818ef1 rp2040_local_i2c_init: update to latest version 2023-04-16 13:08:36 +02:00
datdenkikniet
5a9135961f Split remove old examples 2023-04-16 13:08:35 +02:00
Emil Fresk
306aa47170 Add rtic-timer (timerqueue + monotonic) and rtic-monotonics (systick-monotonic) 2023-03-01 00:33:31 +01:00
Emil Fresk
b8b881f446 Fix so deny(missing_docs) work 2023-03-01 00:33:30 +01:00
Emil Fresk
d6d58b0eb8 Async tasks can now take arguments at spawn again 2023-03-01 00:33:30 +01:00
Emil Fresk
6d252785e8 Support 0 prio tasks 2023-03-01 00:33:28 +01:00
Emil Fresk
35c97b61c1 All examples pass with cargo xtask --target all 2023-03-01 00:33:28 +01:00
Emil Fresk
ceaf3613d3 Update semihosting 2023-03-01 00:33:28 +01:00
Emil Fresk
9a67f00a30 Fix typos 2023-03-01 00:33:28 +01:00
Per Lindgren
9a4f97ca5e more examples 2023-03-01 00:33:24 +01:00
Per Lindgren
569a761122 examples/multiloc fixed 2023-03-01 00:31:08 +01:00
Per Lindgren
b054e871d4 examples/lock fixed 2023-03-01 00:31:08 +01:00
Per Lindgren
bd20d0d89e examples/locals fixed 2023-03-01 00:31:08 +01:00
Per Lindgren
4337e3980c examples/idle-wfi fixed 2023-03-01 00:31:07 +01:00
Per Lindgren
6dc2d29cd9 export Cell removed, expmples updated 2023-03-01 00:31:07 +01:00
Per Lindgren
9247252cc7 examples/async-task fixup 2023-03-01 00:31:07 +01:00