35 Commits

Author SHA1 Message Date
ivmarkov
c83cbe6b66 Fix the build; enable the experimental features in CI 2024-08-05 21:19:20 +00:00
ivmarkov
d1ace4b79a
Add imac targets to CI + fix ESP IDF 4.4.x builds for imac target (#450) 2024-07-07 17:33:28 +02:00
ivmarkov
e79df5a873 Get rid of the riscv-ulp-hal feature 2024-01-18 20:12:27 +00:00
ivmarkov
d29e3c53de Fix CI 2024-01-10 08:36:22 +00:00
ivmarkov
ebeef0fcc8
All executors (#315)
* Support for all async executors

* Make all Notifiucation primitives a public API

* Address a small typo

* Address a small typo

* Fix CI

* Tighten the notify APIs by not taking 0s

* Fix CI

* Fix changelog

* Fix changelog

* Fix the examples

* edge-executor support moved to edge-executor

* wake-from-isr feature for edge-executor

* Fix CI

* Bugfixing

* Clippy
2023-10-06 22:01:20 +03:00
ivmarkov
1aaa928b50 Update CI to latest nightly 2023-09-02 11:40:55 +00:00
ivmarkov
3ab97a27a2 sdkconfig.defaults is not found 2023-06-23 17:06:03 +00:00
ivmarkov
7332707618
Try to downgrade the ESP-RS toolchain so that CI runs fine on xtensa 2023-06-23 09:24:35 +03:00
ivmarkov
2c1bd7103a
Try to download the toolchain so that CI runs fine on xtensa 2023-06-23 09:04:51 +03:00
ivmarkov
2ab4c709f1 #258 2023-06-03 10:44:55 +00:00
ivmarkov
6e9d50e196 Enable all-features CI step 2023-05-12 17:38:28 +00:00
ivmarkov
99e676bd7c Option to manually trigger the CI 2023-05-09 13:35:25 +00:00
Sergio Gasquez Arcos
7ed4b26ab8
Improve CI (#226)
* ci: ️ Swicht to dtolnay/rust-toolchain action

* ci: ⬆️ Bump checkout version

* ci: ️ Swicht to dtolnay/rust-toolchain action and install ldproxy with binary

* ci: ⬆️ Bump checkout version

* ci: ️ Swicht to dtolnay/rust-toolchain action and bump versions

* ci: ️ Swicht to dtolnay/rust-toolchain action and bump versions

* ci: ️ Remove unecesary dependency

* ci: 🎨 Format all CI the same way
2023-03-30 13:21:23 +01:00
Sergio Gasquez Arcos
967f96a6a1
Update xtensa-toolchain action (#206)
* ci: 👷 Update xtensa-toolchain action and remove libncurses5 dependency

* ci: ️ Export GITHUB_TOKEN

* ci: ️ Avoid failing fast
2023-01-19 14:34:33 +00:00
Albin Hedman
a4a7618c91
Ci for idf 5.0 (#183)
* Experiment with IDF 5.0

* Attempt to fix error about libclang

* Add RUSTFLAGS

* What about the esp-rs/xtensa-toolchain thing to 1.4.0?

* Add rustc flags for default linker libs
2022-12-10 08:34:53 +02:00
Ivan Markov
15bbf07794 Latest Espressif clang needs libncurses5 2022-12-04 16:13:51 +00:00
ivmarkov
bf21317626 Include no_std and alloc in the CI 2022-11-21 09:42:02 +02:00
ivmarkov
bbe93fab60 Include no_std and alloc in the CI 2022-11-21 09:23:14 +02:00
Ivan Markov
5edffdac61 Upgrade to latest nightly 2022-08-05 09:07:30 +00:00
Albin Hedman
b0e243ec26
Add CI for ESP (#96)
* clippy

* Add CI for more ESP variants

* CI: Only add ldproxy for riscv target since it's alread installed for Xtensa targets

* Specify IDF version
2022-07-14 00:30:53 +01:00
ivmarkov
40f9b19a01 Revert to working nightly 2022-04-09 17:06:28 +03:00
ivmarkov
9be2b17be6 Switch back to latest nightly 2022-03-30 12:45:59 +03:00
ivmarkov
e433bf6de1 Temporarily switch to older nightly Rust 2022-03-26 20:58:19 +02:00
Christian Meusel
8fc7e6d35d
Add basic driver for LEDC (#43)
* Add basic LEDC driver

This driver allows to configure timers and channels but does not provide
advanced features like fading

* Added missing impl_channels.

* Use non-raw types for LEDC hw "handle" markers

This makes Timer and Channel Sync again.

* Add missing config and deps for dev building examples

* Add simple example for LEDC driver

* Channel changed to hold Timer as Borrow<>, to allow Arc etc.

* Provide unstable options from config.toml

This allows to build and run examples of this crate with cargo-espflash
1.2.0 which does not support passing unstable options.

* Provide ESP_IDF_SDKCONFIG_DEFAULTS from config.toml

This requires only to specify the target for a build explicitly.

* Use main task stack size from rust-esp32-std-demo

* Add multi-threaded example for LEDC

* Clean up ledc example and formatting

* Add note on running examples from this repository

* Fix build for ULP HAL

This LEDC interface is not available there.

* Build examples in CI too

* Use core types for no_std build of ledc

* Init channel config and hpoint with Default

This makes the initialization compatible with ESP IDF 4.3 and 4.4 where
the new field 'flag' has been added. As the default for hpoint was
previously zero, omitting it allows to use ..Default::default() in the
struct initialization in both cases.

* Install ldproxy in CI for building examples

It gets installed just before building examples because this takes its
time and should not delay other builds.

Co-authored-by: yunta <maciej.blomberg@mikoton.com>
2022-02-05 18:57:46 +02:00
Ivan Markov
73181d3730
Ulp fsm peripheral (#37)
* ULP peripheral; ULP HAL code renamed

* Use an enum for the chip cores

* riscv-ulp-hal feature bugfixes

* Fix the CI for ULP as well
2022-01-19 21:35:44 +02:00
Ivan Markov
2d0554d987
Compatibility with embedded-hal-V1; CANBus support (#34)
* upgrade to embedded-hal 1.0.0-alpha.6

This version has CAN traits. So this is prerequisite for adding CAN support.

* update upl/delay.rs traits

* use error type that preserves original EspError

* First cut of dual support: i2c, spi, gpio

* More dual-hal support: adc, serial

* Canbus support (thanks to @andresv)

* Stop the can driver first

* esp-idf driver expects bit length

* SPI: bus lock implementation; bugfixing

* make sure TRANS_LEN size is correct

* CAN fixes (#31)

* add CAN to peripherals.rs

* can: fix allow all filters

* can: fix can::Id types

* can: set correct bits in twai_message_t

* can: improve documentation

* ulp compatibility

* fix ULP Clippy warnings

* Bugfix: SPI transfer was broken

* New breaking release

* Move ESP-IDF CI build on a separate schedule

Co-authored-by: Andres Vahter <andres@vahter.me>
2022-01-10 13:06:36 +02:00
ivmarkov
e53d1e1d71 Implement CI for the ULP functionality 2021-12-08 10:49:26 +02:00
ivmarkov
0a57151b6c Mention correct feature 2021-12-06 14:49:46 +02:00
ivmarkov
c9c407fd97 Mention correct feature 2021-12-06 14:42:52 +02:00
ivmarkov
814ff75708 Fixes for 4.4 and 5.0 branches 2021-12-06 14:25:56 +02:00
ivmarkov
0bbeb58f54 Fix the github actions to depend on the new esp-idf-sys environment variables 2021-12-05 23:57:29 +02:00
Ivan Markov
67dbc34ddc
Treat clippy warnings as errors 2021-12-03 19:07:58 +02:00
Ivan Markov
f6a51d58b2
Treat clippy warnings as errors 2021-12-03 19:07:16 +02:00
imarkov
1bd7561afc Remove the native builds as the feature is not there; they will become the default anyway 2021-10-25 13:21:29 -04:00
imarkov
77cd6e9aff GitHub actions 2021-10-25 12:55:48 -04:00