984 Commits

Author SHA1 Message Date
jneem
5503121bea
Async read implementation for usb serial jtag (#889)
* Async read implementation for usb serial jtag

* Check the example in ci

* Add the example's required features

* Add changelog entry

* Improve the example

* Add examples for other boards

* Fix changelog

* Add required features for examples
2023-11-17 18:26:45 +00:00
Juraj Sadel
4d87e75d71
H2: prepare modem clocks for BLE (#953)
* H2: prepare modem clocks for BLE

* changelog
2023-11-17 11:04:17 +00:00
Björn Quentin
8c5fda2d53
Fix zero/copy data in esp-riscv-rt (#952)
* Fix zero/copy data in esp-riscv-rt

* CHANGELOG.md
2023-11-17 10:49:40 +00:00
Dániel Buga
c61287ec4f
Don't suggest enabling systimer on esp32 (#949) 2023-11-17 06:46:10 +00:00
Dániel Buga
6814822cfd
Decouple default features from esp-hal-common (#867) 2023-11-16 14:09:47 +00:00
Jesse Braham
506c698f53 Add merge_group event to CI workflow 2023-11-16 04:45:11 -08:00
Dániel Buga
5a9763aaf7
Only implement __pender if a hal-executor is used (#937) 2023-11-15 00:30:03 -08:00
Jesse Braham
f729f89889
Remove the mcu-boot feature from esp32c3-hal (#938)
* Remove the `mcu-boot` feature from `esp32c3-hal`

* Update `CHANGELOG.md`
2023-11-14 11:49:40 -08:00
Björn Quentin
52da17075e
Remove unnecessary riscv::interrupt::enable() from examples (#936) 2023-11-14 09:28:39 -08:00
Dániel Buga
7084a380a6
Disallow multiple esp-hal-common versions (#934) 2023-11-14 02:31:34 -08:00
Edgar Sousa
957b232413
fix: wrong clear of RMT interrupts (esp-rs/esp-hal#925) (#930) 2023-11-13 14:13:21 +01:00
Björn Quentin
98a52ea808
Re-add API to get a GPIO's interrupt status bit (#929)
* Re-add API to get a GPIO's interrupt status bit

* CHANGELOG.md entry
2023-11-13 14:03:45 +01:00
Lachezar Lechev
89c6ecafbd
fix: interrupt riscv - _pc variable typo (#928)
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-11-13 09:09:42 +01:00
Dániel Buga
07ed22df17
Clean up (#920) 2023-11-10 06:04:05 -08:00
Dániel Buga
6b0a16fc6e
Remove implementation of provided method (#921) 2023-11-10 13:48:14 +01:00
Dániel Buga
bde317ee69
DMA cleanup (#915) 2023-11-10 13:20:35 +01:00
Dániel Buga
280caad378
RISC-V: Make atomic emulation opt-in (#904)
* RISC-V: Make atomic emulation opt-in

* Update embassy-executor, embassy-sync

* Don't automatically enable portable-atomic

* Update changelog

* Fix warnings
2023-11-10 11:51:47 +00:00
Björn Quentin
c612fecfae
Clear LP/RTC RAM (#916)
* Clear LP_RAM/RTC RAM to make sure .bss is cleared

* Rename `ulp-riscv-hal` to `esp-ulp-riscv-hal`

* CHANGELOG.md entry
2023-11-09 14:06:58 +01:00
Björn Quentin
0659928930
Support inverted pins (#912)
* Support inverted pins

* CHANGELOG.md entry

* Improve docs

* Provide `From`/`Into` for inverted pins
2023-11-09 08:45:13 +01:00
Paul Paterson
594bc65793
Derive Clone and Copy for EspTwaiFrame (#909)
* Derive Clone and Copy for EspTwaiFrame

* Update CHANGELOG.md
2023-11-09 03:36:15 +00:00
Marc-Antoine Manningham
62894e3f84
feat set frequency embedded hal (#880)
* Add SetDutyCycle and PwmPin trait

* Add comments

* Fix method call for esp32c6 and esp32h2

* Add changelog
2023-11-09 03:33:47 +00:00
sanxus
c196b67587
Improve spi master constructor (#901)
* make pins optional for Spi::new (master, full-duplex mode)

* add additional method to setup spi pins (master, full-duplex mode)

* add additional method to setup spi pins (master, half-duplex mode)

* remove generic type parameters for Spi::new

* update documentation

* make `with_pins` could be chained

* update CHANGELOG.md

* update CHANGELOG.md

* make the return value of a method like `with_{*}` owned

* fix (maybe?) all broken examples caused by the change (esp32-hal)

* fix (maybe?) all broken examples caused by the change (esp32c2-hal)

* fix (maybe?) all broken examples caused by the change (esp32c3-hal)

* fix (maybe?) all broken examples caused by the change (esp32c6-hal)

* fix (maybe?) all broken examples caused by the change (esp32h2-hal)

* fix (maybe?) all broken examples caused by the change (esp32s2-hal)

* fix (maybe?) all broken examples caused by the change (esp32s3-hal)

* rerun 'cargo fmt' for esp-hal-common

* rerun 'cargo fmt' for the rest of examples
2023-11-08 12:11:58 +01:00
jneem
aa1fefdc8c
Add more input trait impls for open drain outputs (#905)
* Add more input trait impls for open drain outputs

* Changelog
2023-11-08 12:11:16 +01:00
Björn Quentin
9d0047f4d6
Configurable LP Core clock (#907)
* Configurable LP Core clock

* CHANGELOG.md entry
2023-11-07 17:03:03 +00:00
Scott Mabin
fb31f868f1
Remove direct boot support from esp-hal (#903)
* Remove direct boot support from esp-hal

* changelog
2023-11-07 14:34:46 +00:00
Dániel Buga
780a7f5e4a
Fix us waits in embassy hanging (#906)
* Remove unused field from AlarmState

* Clean up non-idiomatic code

* Simplify timg0 time driver

* Better explain instant firing, hide fn, re-add check

* Add changelog entry
2023-11-07 14:34:14 +00:00
Dániel Buga
111d00617f
S3: Fix the number of GPIO pins (#898) 2023-11-03 08:26:58 +01:00
Dániel Buga
9f0d384ebf
Pin static_cell (#899) 2023-11-03 08:05:37 +01:00
Jesse Braham
a8fbc03e26 Begin next release cycle 2023-11-02 08:15:40 -07:00
Jesse Braham
a5ab05eb69 New patch release for esp-hal-common v0.13.1 2023-11-02 07:52:39 -07:00
Björn Quentin
a13ab2943a
ESP32-C6/H2: UART sync registers and use xtal (#893)
* ESP32-C6/H2: UART sync registers and use xtal

* CHANGELOG.md entry
2023-11-01 15:58:15 +01:00
Björn Quentin
8eddb9e737
Make sure BLE and WiFi are not powered down when esp-wifi needs them (#891)
* Make sure BLE and WiFi are not powered down when esp-wifi needs them

* CHANGELOG.md entry
2023-11-01 14:01:02 +01:00
Jesse Braham
185e5e759b Begin next release cycle 2023-10-31 09:43:52 -07:00
Jesse Braham
8a3e63cdeb
New package releases (#887)
* New package releases

* Update `CHANGELOG.md`
v0.13.0
2023-10-31 09:18:20 -07:00
Jesse Braham
9cb8f7e941
Miscellaneous pre-release fixes (#883)
* Temporarily disable async `SYSTIMER` implementation, remove mention from `CHANGELOG.md`

* Remove a couple files which are not required

* Fix warning for `sha` examples

* Fix warning for non-C3 devices

* s/interrupt_clear/clear_interrupt/
2023-10-31 06:50:54 -07:00
jneem
ff80b69183
Provide ADC values in mV instead of requiring the user to scale them (#836)
* Provide ADC values in mV instead of requiring the user to scale them

* Changelog

* Try converting poly calibration also

* Update changelog and comments

* Fix example
2023-10-30 10:16:45 -07:00
Jesse Braham
0304a10b2f Documentation improvements for esp-hal-procmacros 2023-10-27 08:27:06 -07:00
Sergio Gasquez Arcos
8a54c8a3e3
docs: Update readme (#877) 2023-10-27 08:02:38 -07:00
Jesse Braham
29ebd170ee
Update dependencies, miscellaneous fixes/improvements (#878)
* Force frame pointers for RISC-V chips

* Various dependency updates

* Update to latest published PACs and resolve build errors

* Top-level `README` updates

* Further clarify when `RUSCT_BOOTSTRAP=1` is required
2023-10-27 06:41:04 -07:00
Björn Quentin
663cbd9ce0
Workaround for ESP32-C6 one-shot ADC (#876)
* Workaround for ESP32-C6 one-shot ADC

* CHANGELOG.md entry
2023-10-26 12:34:29 -07:00
Scott Mabin
6b04092bd8
Remove variable from s2 linker because it no longer exists (#875) 2023-10-26 10:49:24 +01:00
Björn Quentin
aa078f6868
Fix/esp32s3 direct boot (#873)
* Fix ESP32-S3 direct-boot

* Make ESP32-S3 direct-boot work with LLD

* CHANGELOG.md entry
2023-10-26 10:38:51 +01:00
Scott Mabin
94a07da47b
Fix Async UART (#871)
* Fix Async UART

The uart handler was `writing` to the enable register instead of
`modify`, which meant any wake would see the cleared enabled bit and
think the event had occurred. This wasn't seen before the split of uart
because it was only possible to listen to one thing at a time.

This PR also removes the ReadBufferFull error in favour of returning the
max bytes in the buffer.

The serial examples has been updated to actually have some cross task
communication.

* changelog

* fix dev deps
2023-10-25 10:25:25 -07:00
Dániel Buga
a24eff9bf9
Fix async SPI/DMA race condition (#869) 2023-10-25 11:50:18 +01:00
Scott Mabin
6eca968bb8
Add LLD option for all Xtensa chips (#861)
* Add LLD option for all Xtensa chips

* changelog

* Fix linkerscript for esp32s3 rtc fast ram region
2023-10-25 11:49:42 +01:00
Björn Quentin
29f3518c04
Add RISCV TRACE Encoder driver (#864)
* Add RISCV TRACE Encoder driver

* CHANGELOG.md entry
2023-10-23 13:16:27 +02:00
Jesse Braham
33bfe80d95
Prelude improvements/fixes (#860)
* Move SPI-related traits into their own preludes in the `spi` module

* Remove the `embedded-hal-async` trait re-exports and the `eh1` module from the prelude

* Update `CHANGELOG.md`
2023-10-20 06:56:17 -07:00
Jesse Braham
62a174fd06
Replace the radio module with peripheral singleton structs (#852)
* Replace the `radio` module with peripheral singleton structs

* Update `CHANGELOG.md`
2023-10-20 11:11:32 +01:00
Björn Quentin
d41e306504
Add support for 16MB octal PS-RAM (ESP32-S3) (#858)
* Add support for 16MB octal PS-RAM (ESP32-S3)

* Add CHANGELOG.md entry
2023-10-19 14:00:27 +02:00
Jesse Braham
4238a630fc
Assorted analog-related simplifications/clean up (#857)
* Remove duplicated `analog` modules, which are not necessary

* Merge the `SarAdcExt` and `SensExt` traits into a single `AnalogExt` trait

* Clean up/simplify the analog module a bit

* Update `CHANGELOG.md`
2023-10-19 13:37:14 +02:00