Dániel Buga
4546f861c8
Reduce UART Instance trait to the bare minimum ( #2410 )
...
* Merge signal fns
* Remove logic from UART Instance, remove uart_number
* Use the unwrap macro
* Place peripheral info into static structs
* Clean up
* Clean up
* Update todo
* Rename
* Separate out state
2024-10-30 15:51:33 +00:00
Dániel Buga
a8fedf0130
Move some implementation details out of GPIO ( #2429 )
...
* Move macros out of gpio
* Align S2 impl
2024-10-30 15:11:48 +00:00
Kirill Mikhailov
3e42b76993
Add an option to configure WDT action ( #2330 )
...
* WIP
* revert example
revert config
* changelog entry
* Make `RWDT` API work correctly, make `RWDT` and `MWDT`APIs same
* update documentation code
oops
* rev
* Polishing
* Document bootloader limitation
+ typo fix
* Address reviews
* fix documentation examples
2024-10-30 09:46:34 +00:00
Dániel Buga
f07e25c970
Add option to disable waiti ( #2329 )
2024-10-30 08:12:15 +00:00
Björn Quentin
b7224ef4c9
RISC-V: Fix interrupt stack alignment ( #2425 )
2024-10-29 11:45:30 +00:00
Dániel Buga
8a23dbe1b6
Modernize UART interrupts ( #2406 )
...
* Modernize UART interrupts
* Also derive Debug and Format for interrupt enums
* Fix changelog
* Touch up API-GUIDELINES
2024-10-28 09:07:15 +00:00
Dániel Buga
4e257f74aa
Merge/remove some GPIO-related macros ( #2404 )
...
* Remove redundant macros
* Deduplicate rtcio dispatch macros
* Clean up unnecessary import
* Remove manual bank assignment
2024-10-28 07:08:53 +00:00
Dániel Buga
f3c5286028
Add Cpu::COUNT and clean up in esp-hal-embassy ( #2411 )
...
* Add Cpu::COUNT and simplify
* Avoid a bounds check during pending
2024-10-26 13:36:10 +00:00
Dániel Buga
6bf03f63a9
Small SPI slave cleanup ( #2405 )
2024-10-25 15:07:43 +02:00
Dániel Buga
681f4ef0aa
Implement UART type erasure ( #2381 )
...
* Simplify test
* Remove unnecessary refs
* Improve readability
* Require Instance: PeripheralMarker
* Take &self
* Avoid unsafe code on non-s2
* SImplify drain_fifo
* Simplify read_bytes
* Avoid a register read on ESP32
* Deduplicate is_idle functions
* Add missing inlines
* Move code out of trait
* Erase UART instances
* Disable LTO
2024-10-25 08:03:20 +00:00
Dániel Buga
561b582a80
Overhaul peripheral signal system, first run ( #2388 )
...
* Remove redundant bound
* Remove redundant Dummy variant
* Make PeripheralOutput extend PeripehralInput
* Rename AnyInputSignal to InputConnection
* Add OutputConnection
* Convert into type-erased interconnect conections
* Clean up LCD/CAM
* Document changes
* Review changes
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
* Clean up
---------
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
2024-10-25 07:01:45 +00:00
Dániel Buga
19b08efc1d
Rework how pin capabilities are declared ( #2400 )
2024-10-24 11:55:46 +00:00
Björn Quentin
a7d8b2009d
Use panic instead of process::exit ( #2402 )
2024-10-24 11:06:05 +00:00
Dániel Buga
2ac47868f7
Remove FullDuplexMode and HalfDuplexMode type params ( #2373 )
...
* Remove duplex type param
* Rename dma_ functions
2024-10-24 07:22:21 +00:00
Dániel Buga
f03527f6fc
Change example to set max clocks ( #2399 )
...
* Change example to set max clocks
* Update esp-hal/src/lib.rs
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-10-24 07:18:29 +00:00
Dániel Buga
c163b0586a
Erase TWAI ( #2359 )
...
* Swap order of generics
* Don't refer to Instance in irq handler
* Deduplicate a bit
* Take &self
* Reduce nesting
* Erase TWAI instance
2024-10-24 06:47:02 +00:00
Easyoakland
1de2483609
fix wifi async fn disconnect hanging if not connected when called ( #2392 )
...
* fix wifi async fn disconnect hanging if not connected when called
* update changelog
* clarify comment
* add pr number to changelog
2024-10-23 21:29:00 +00:00
Dániel Buga
5f6ca8d252
Fix embassy migration guide ( #2393 )
2024-10-23 13:49:20 +00:00
Dániel Buga
4c1c6131df
Wait more before re-enabling USB power ( #2397 )
2024-10-23 12:56:59 +00:00
Dániel Buga
71c4fc5a24
Add note to start_app_core ( #2395 )
2024-10-23 08:54:53 +00:00
Dániel Buga
5486cdb5e3
Clean up i2c add_cmd ( #2394 )
2024-10-23 08:44:30 +00:00
Dániel Buga
e367c83bde
Erase i2c peripheral instances ( #2361 )
...
* Clean up
* Erase I2C instance type
* Clean up
* Implement Peripheral
* Changelog
* Remove with_timeout constructors
2024-10-23 06:31:08 +00:00
Dániel Buga
1afc9eef89
Remove unnecessary generic from ChannelHW ( #2387 )
...
* Remove unnecessary generic from ChannelHW
* Changelog
2024-10-22 15:41:42 +00:00
Björn Quentin
54d4407042
Better align atoi to what the C-library does ( #2380 )
...
* Better align `atoi` to what the C-library does
* Address review comments
* Clippy
* More clippy
* Prefer `read` over `read_volatile`
2024-10-22 14:55:24 +00:00
Dániel Buga
632bbc6461
Fix interrupt executors waking up thread-mode executors on the first core ( #2377 )
...
* Clean up
* Add failing multi-core test
* Reset interrupts before main
* Changelog
* Add test case
2024-10-22 14:45:06 +00:00
Dániel Buga
aec83bdd31
GPIO cleanup ( #2384 )
...
* Return alternate function maps as slices
* Prefer steal() over ptr deref
* Clean up rtc_io
2024-10-22 12:56:45 +00:00
Jesse Braham
56cd5a288f
Update PACs to latest git revision ( #2383 )
...
* Update to latest git revision of all PACs
* Update RSA module to reflect changes in PACs
* Update TWAI module to reflect changes in PACs
* Further simplification
2024-10-22 12:33:36 +00:00
Björn Quentin
c574834ae3
Include ROM API symbols ( #2374 )
...
* Include ROM API symbols
* Fixes and CHANGELOG.md
* Fix
* Move migration steps to the right crate's migration guide
* Remove `-Trom_functions.x` where necessary
2024-10-22 10:02:49 +00:00
dimpolo
62ee60d43f
Fix conflict between RtcClock::get_xtal_freq and Rtc::disable_rom_message_printing ( #2360 )
...
* deduplicate some code in rtc_cntl
* mask out the RTC_DISABLE_ROM_LOG bit when reading RTC_XTAL_FREQ
2024-10-22 08:35:46 +00:00
Dániel Buga
a4bc0536a3
PAC update ( #2378 )
...
* PAC update
* Inline steals into reg expressions
2024-10-22 06:41:33 +00:00
Dániel Buga
d914a0301f
Erase i2s ( #2367 )
...
* Implement I2S type erasure
* Clean up
2024-10-22 06:33:27 +00:00
Dániel Buga
a754e411b1
SPI type erasure ( #2334 )
...
* Move SPI peripheral type to the last position
* Implement AnySpi
* Convert peripheral types
* Add new_typed constructors
* Implement PDMA
* Fix conditional
* Clean up constructors
* Fix test
* Move stuff to utils
* Extract any macros
* Merge PeripheralMarker defs into peripherals macro
* Changelogs
* Implement fn degrade
* Changelog num
* Fix typo
* Rename type-erased dma channel
* Remove degrade fn
* Remove utils
* Explain peripherals macro
2024-10-21 14:03:14 +00:00
Dániel Buga
f2aa3f9863
Update embedded-test ( #2375 )
2024-10-21 09:35:15 +00:00
Dániel Buga
d32a7336bb
Simplify traits and erratum 36 workaround, add Pins::steal ( #2335 )
...
* Simplify erratum 36
* Add Pins::steal
* Fix typo
* Move pin operations into Flex
* Cleanup braces
* Avoid panicking when handling erratum
* Add disable_usb_pad to other devices
* Touch up changelog
* Fix changelog
2024-10-18 14:17:43 +00:00
akesser
326e006335
doc: add hint for feature flag in wifi examples ( #2365 )
2024-10-18 14:14:21 +00:00
Dániel Buga
f0d0dd92c4
Do not optimise ecc test ( #2366 )
2024-10-18 14:05:02 +00:00
Björn Quentin
358d884643
Add option to place more .rodata in RAM for performance ( #2331 )
...
* Add option to place more `.rodata` in RAM for performance
* Make CI green, again
* Removed unnecessaries
* Split option into two
* Make `place-switch-tables-in-ram` default
* Xtensa
---------
Co-authored-by: Scott Mabin <scott@mabez.dev>
2024-10-18 11:47:12 +00:00
Georges
9d51d1befe
fix doc ( #2363 )
2024-10-18 10:22:39 +00:00
Kirill Mikhailov
88c4dba9e0
esp-wifi docs improve (#2354 )
...
* Improve esp-wifi docs (WIP)
* Finalize
* Address reviews, make cratewide public functions be `pub(crate)`.
* config -> configure
2024-10-18 08:23:16 +00:00
Dániel Buga
472d5f93e0
Add PeripheralRef::map_into ( #2326 )
...
* Add PeripheralRef::map_into
* Update clone_unchecked to take shared self
* Simplify pin erasure
2024-10-16 13:34:11 +00:00
Dominic Fischer
6e2606b367
Add burst transfer support to DMA buffers ( #2336 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-10-16 13:25:48 +00:00
Dániel Buga
99a579973a
Preparatory i2s refactor ( #2316 )
...
* Take self
* Consolidate signal impls
* Remove traits
* Deduplicate impls
* Seal AcceptedWord
* Changelog
* Migration guide
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-10-16 13:04:00 +00:00
Jesse Braham
39c0baf2c7
New patch release for esp-hal ( #2355 )
2024-10-16 08:39:49 +00:00
Anthony Grondin
060aa7262c
feat(esp-wifi): Implement serde:{Deserialize, Serialize} for wifi structs ( #2346 )
...
* feat(esp-wifi): Implement `serde:{Deserialize, Serialize}` for wifi structs
* Update changelog
* Add missing serde feature for dependencies that supports it.
2024-10-16 07:10:43 +00:00
Dániel Buga
67bc37fb93
Add --fix to lint-packages ( #2351 )
...
* Add --fix to lint-packages
* Fix suggestion that breaks clippy
2024-10-15 09:33:15 +00:00
Dániel Buga
f0a361e448
Point to usage examples ( #2349 )
2024-10-15 09:24:46 +00:00
Dominic Fischer
da9c0b0579
Move mem2mem out of GDMA module ( #2323 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-10-15 09:20:36 +00:00
Alexandra Clifford
a15cfe7f21
Make RX queue size configurable ( #2324 )
2024-10-15 07:38:09 +00:00
Dániel Buga
ef7842fab4
Reimplement blocking trait for async i2c ( #2343 )
2024-10-14 12:50:37 +00:00
Kirill Mikhailov
0dc8dcf8e2
XTASK: add a way to activate features per chip (docs) ( #2287 )
...
* XTASK: add a way to activate features per chip (docs)
* Address reviews
2024-10-14 09:04:38 +00:00