2240 Commits

Author SHA1 Message Date
Björn Quentin
d201d160fa
Merge pull request #109 from jessebraham/fixes/updates
Disable `smartled` feature by default and update `xtensa-lx-rt` dependency
2022-07-20 20:25:20 +02:00
Jesse Braham
a5bdab7316 Update the CI to include the hello_rgb example in checks again 2022-07-20 10:44:04 -07:00
Jesse Braham
4ba610d38d Do not enable the smartled feature by default 2022-07-20 10:38:48 -07:00
Jesse Braham
2a00119f94 Update the xtensa-lx-rt dependency to the newest version 2022-07-20 10:37:02 -07:00
Björn Quentin
9fa1d1ecdb
Add direct-boot support for ESP32-S3 (#107)
* Add direct-boot support for ESP32-S3
* Make sure to use correct alignments
* Only enable naked_functions and asm_experimental_arch when direct-boot feature is selected
2022-07-20 07:14:19 -07:00
Björn Quentin
147d8de988
Separate TIMG into timer0, (timer1), wdt (#104)
* Separate TIMG into timer0, (timer1), wdt
* Apply suggestions from code review
* Remove left-over code
* Ignore settings.json
2022-07-20 06:51:39 -07:00
bjoernQ
907d43ed6f Pin the PAC dependencies 2022-07-15 12:14:27 +02:00
bjoernQ
35a58490c6 Additional UART/Serial features 2022-07-13 22:46:34 +02:00
Jesse Braham
b69423451f Bump the riscv-rt dependency version 2022-07-13 08:21:36 -07:00
Björn Quentin
e612bd1120
Add some config options to the UART driver (#99)
* Add some config options to the UART driver
* Use esp-println 0.2.0
* Remove the NoPin type
* Serial constructor now doesn't return a Result anymore
2022-07-12 08:00:02 -07:00
bjoernQ
887798fd6f Reading raw ADC data for ESP32-C3 2022-07-07 18:39:11 +02:00
bjoernQ
568e37c166 Reading raw ADC data on ESP32 and ESP32-S2 2022-07-07 17:55:26 +02:00
bjoernQ
1655e36c31 Implement starting a task on second core of ESP32 and ESP32-S3 2022-07-05 17:41:55 +02:00
Jared Moulton
45060bb684 Add WIP hal-1.0 SPI traits
This implemnts the functionality for SpiBusFlush and SpiBusWrite traits
2022-07-04 19:03:39 +02:00
Björn Quentin
98b24ae34e
Merge pull request #94 from bjoernQ/bugfix/allow-sub-seconds-timer-timeouts
Allow sub-seconds timer timeouts
2022-07-01 10:08:03 +02:00
bjoernQ
b48e9c30a3 Allow sub-seconds timer timeouts 2022-07-01 09:51:28 +02:00
Björn Quentin
7e25eebd8d
Implement DAC support for ESP32/ESP32-S2 (#92)
* Implement DAC support for ESP32/ESP32-S2
* Adapt the DAC samples after rebase
2022-06-30 11:57:16 -07:00
Björn Quentin
5414c46f6d
Merge pull request #91 from jessebraham/fixes/timer
Convert the `Timer` to take time units for countdown instead of `u64`
2022-06-30 08:44:15 +02:00
Jesse Braham
178a05522d Update all examples to reflect changes to Timer API 2022-06-29 17:57:23 -07:00
Jesse Braham
eb8555572b Convert the Timer to take time units for countdown instead of u64 2022-06-29 17:57:16 -07:00
Jesse Braham
54be1b328d Add a method to each GPIO type which returns its pin number 2022-06-28 14:55:33 -07:00
Jesse Braham
3d481901a5
Put the embedded-hal alpha trait implementations behind a feature (#88)
* Remove unused dependencies from HAL packages

* Put the `embedded-hal` alpha trait implementations behind a feature
2022-06-27 10:13:18 +01:00
Sergio Gasquez Arcos
fbd42865ef
Update MISO and CS pins to be optional (#89)
* Update CS and MISO pins to be optional
* Update examples
2022-06-23 10:10:57 -07:00
Jesse Braham
c5cdf68ddc Bump the xtensa-lx-rt version 2022-06-22 08:35:55 -07:00
bjoernQ
8a3a0e7cb9 Reading of some eFuses 2022-06-17 16:51:26 +02:00
bjoernQ
3841c09e5d Fix RMT driver 2022-06-15 16:40:49 +02:00
Jesse Braham
2417cd0b33 Update the prelude, adding a public module for the embedded-hal alpha traits 2022-06-14 17:28:03 +02:00
Jesse Braham
e764194f2f Implement non-blocking SPI traits from embedded-hal alpha 2022-06-14 17:28:03 +02:00
Jesse Braham
8663153e12 Implement the embedded-hal alpha traits for the GPIO and I2C drivers 2022-06-14 17:28:03 +02:00
Jesse Braham
9b033d44db Implement the embedded-hal alpha traits for the Delay and Serial drivers 2022-06-14 17:28:03 +02:00
bjoernQ
9c244ba16c Make sure that HAL users don't need to depend on esp-hal-common 2022-06-13 16:38:58 +02:00
bjoernQ
918f7a7c8e Electrical state of open drain output can be read 2022-06-13 16:38:58 +02:00
bjoernQ
86f4d02782 Fix wrong SCL for ESP32,ESP32S2 2022-06-10 19:02:12 +02:00
Björn Quentin
1752e17531
Merge pull request #78 from bjoernQ/refactor_gpio
Simplify GPIO Macros
2022-06-10 17:03:18 +02:00
Scott Mabin
4acdf2516c
[esp32c3] SYSTIMER peripheral (#76)
* initial systimer impl
* Add systimer example
* Make Alarms real singletons
  * Remove runtime Option, turn into compile error
  * Make Systimer::now() not take self
* refactor shared alarm methods
* Implement esp32c3 delay with monotonic SystemTimer::now()
* Add extend systimer support to esp32s3 and add example
* systimer: esp32s2 support
2022-06-10 07:53:45 -07:00
bjoernQ
0dd0238ce7 Simplify GPIO Macros 2022-06-10 15:04:23 +02:00
Jesse Braham
0c61e7eeef Fix build errors introduced by updating the esp-pacs dependency 2022-06-09 10:35:18 -07:00
Björn Quentin
3fd4b03144
Add boot-default ClockConfig (#77) 2022-06-09 13:51:17 +01:00
Jesse Braham
422cd5036d Use the PTR constant instead of the ptr() function for peripherals 2022-06-07 10:08:52 -07:00
Juraj Sadel
e9d25153c6 Change frequency for all Xtensa chips 2022-06-03 19:56:21 +02:00
Björn Quentin
a96ac9a53a
Merge pull request #66 from jessebraham/fixes/rust-analyzer
Update `rust-analzyer` configuration and CI workflow
2022-05-31 19:48:13 +02:00
Jesse Braham
b7e84bc7fd Update CI workflow now that we aren't in a workspace 2022-05-31 10:17:13 -07:00
Jesse Braham
3669381234 Update the rust-analyzer config and take packages out of workspace 2022-05-31 10:02:55 -07:00
Juraj Sadel
b382a019d4
Feature/time types (#64)
* Use fugit time types for SPI peripheral, update examples

* initial WIP

* fix CI build errors

* Use extension trait in examples

Co-authored-by: Jesse Braham <jesse@beta7.io>
2022-05-31 11:39:44 +01:00
Björn Quentin
76a2067339
Add feature to reserve Bluetooth RAM for ESP32 (#63) 2022-05-20 10:38:39 +01:00
Robert Wiewel
a55c9d77ec Add RMT output channel support for all current ESP32 variants
- Add RMT output channel support for ESP32, ESP32-S2, ESP32-S3, ESP32-C3
- Add add RMT adapter for `smart-leds` crate
- Add example `hello_rgb` for ESP32-S2, ESP32-S3 and ESP32-C3 that either
  drives one LED at the pin where a LED is located on the official devkits
- Add example `hello_rgb` for ESP32 that is driving a 12-element RGB ring.
2022-05-17 15:56:25 +02:00
Björn Quentin
a2afa6cbbe
Merge pull request #61 from jessebraham/fixes/cleanup
Enforce clippy lints in CI, miscellaneous cleanup and formatting
2022-05-05 14:53:40 +02:00
Jesse Braham
80e22ba508 Enforce clippy lints in CI 2022-05-05 14:18:09 +02:00
Jesse Braham
67bd5837cd Make cargo manifests consistent and bump dependencies 2022-05-05 11:56:43 +02:00
Jesse Braham
e745e84869 Fix a whole bunch of clippy warnings 2022-05-05 11:51:12 +02:00