16 Commits

Author SHA1 Message Date
ivmarkov
e79df5a873 Get rid of the riscv-ulp-hal feature 2024-01-18 20:12:27 +00:00
ivmarkov
05140a3056 The crate now does build with cargo --all-features 2024-01-05 16:26:26 +00:00
ivmarkov
29c466c941 #284 2023-08-22 19:22:07 +00:00
ivmarkov
ee4e12c04a Clippy 2022-05-02 15:45:49 +03:00
ivmarkov
a273bfc554 Compatibility with CMake build 2022-05-02 15:37:08 +03:00
ivmarkov
e441b44daf Compatibility with CMake build 2022-05-02 15:26:27 +03: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
ivmarkov
515a40b8f9 Make the RAM size of the riscv ULP linker script configurable 2022-01-11 13:36:13 +02:00
imarkov
9f699c00d9 Compatibility with ESP-IDF 4.4 2021-09-16 15:52:29 +03:00
imarkov
6f760e8cc0 Switch to embuild 2021-08-23 21:20:16 +03:00
imarkov
d818ca18a6 Propagate sdkconfig tristate keys as Rustc cfg conditionals 2021-08-18 10:55:32 +03:00
imarkov
ee6cc88454 Propagate sdkconfig tristate keys as Rustc cfg conditionals 2021-08-18 10:53:23 +03:00
imarkov
b0e5629869 RiscV ULP boot code no longer dependent on the riscv-rt crate 2021-07-27 16:57:09 +03:00
imarkov
8e2a80891a (WIP) esp32s2 ULP riscv support 2021-07-21 11:10:15 +03:00
Ivan Markov
bf90df86de Support for ESP-IDF 4.3; (WIP) Support for ESP32C3 and ESP32S2 2021-07-10 18:19:34 +03:00