7 Commits

Author SHA1 Message Date
ivmarkov
16a10d077c Unify cargo config accrss the esp-idf crates 2024-01-25 17:56:01 +00:00
ivmarkov
1679d9ca83 Add the new imac target 2023-09-02 15:38:47 +00:00
ivmarkov
b3bd18d06b Remove unnecessary flag 2023-09-02 15:20:55 +00: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
6eb0863d6d Remove unused configurations 2021-06-16 12:10:21 +03:00
Ivan Markov
4d2777d0b3 (WIP) Gpio and I2C 2021-06-03 13:33:16 +03:00
Y. Sapir
ec904396b8 Setup compilation for esp32 2019-07-19 02:16:36 +03:00