Commit graph

188 commits

Author SHA1 Message Date
Wouter Geraedts
69dcb051e0 Added esp32c6 support and example 2024-04-09 15:01:27 +02: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
Emil Fresk
2ad36a6efe Lifetime cleanup 2023-03-01 00:31:06 +01:00
Emil Fresk
714020a624 Removed Priority, simplified lifetime handling 2023-03-01 00:31:06 +01:00
Emil Fresk
3b97531a5c First example builds again 2023-03-01 00:31:05 +01:00
Emil Fresk
582c602912 Old xtask test pass 2023-03-01 00:31:01 +01:00
Henrik Tjäder
dbc6964f88 example: pool: Do not print the addr
Unstable and prone to fail CI
2023-02-26 17:30:09 +01:00
Henrik Tjäder
800904a105 Handle more cfgs, support cfg on HW/SW tasks 2023-01-22 13:38:43 +01:00
Henrik Tjäder
022330bfcb Add example cfg-ing a Monotonic, showing limitations imposed by rtic-syntax 2023-01-22 12:00:12 +01:00
Henrik Tjäder
1237f5b33b Heapless 0.7.16 pool!() generates undocumented struct 2023-01-22 00:22:46 +01:00
Henrik Tjäder
40d5ace111 Deny missing_docs for all examples 2023-01-21 23:10:43 +01:00
Henrik Tjäder
9764121cc1 Upgrade of semihosting changed timing
New semihosting 0.5 does not use error handling,
returns directly and as semihosting is generally slow
this led to missing print statements.

Workaround is to add NOP, which seems sufficient
to let it flush the buffers
2023-01-14 11:24:51 +01:00