Dominic Fischer
b3401bff59
Refactor SPI MISO setup ( #2557 )
...
* Refactor SPI MISO setup
* update HIL
* docs
* missed a spot
* fix changelog
---------
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
Co-authored-by: Scott Mabin <scott@mabez.dev>
2025-01-07 11:31:26 +00:00
Jesse Braham
2a4e58a230
UART: Remove blocking version of read_bytes
and rename drain_fifo
to read_bytes
instead ( #2895 )
...
* Remove `read_bytes` function, rename `drain_fifo` to `read_bytes`
* Update migration guide
* Update `CHANGELOG.md`
* Use `crate::interrupt::free` in `read_byte`
* Fix HIL test
* Only use `crate::interrupt:free` for ESP32
2025-01-07 10:02:29 +00:00
Juraj Sadel
5cd0d6f6bf
Alter stability note in README and briefly explain unstable feature ( #2894 )
...
* Alter stability note in README and briefly explain unstable feature
* Review comments
2025-01-07 09:03:30 +00:00
Jesse Braham
39da5337ac
Fix naming violations and clean up some doc comments in UART driver ( #2893 )
...
* Resolve naming violation for `Parity` enum
* Remove unnecessary/redundant information from doc comments
* Resolve naming violations for `DataBits` and `StopBits` enums
* Update migration guide
* Update `CHANGELOG.md`
2025-01-06 12:11:06 +00:00
Dominic Fischer
7319458dd2
Properly reset descriptors in DmaRxStreamBuf::prepare
( #2890 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2025-01-06 09:16:44 +00:00
Jesse Braham
05b5bac027
Add package metadata to esp-storage
to make documentation build ( #2891 )
2025-01-06 08:03:53 +00:00
Dominic Fischer
6494354a91
Fix small typo in migration guide ( #2888 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2025-01-06 07:14:47 +00:00
Dániel Buga
713cd491b6
GPIO: Refactor AnyPin to contain a u8
( #2854 )
...
* Remove panicking match from Flex::set_level
* Rework AnyPin to contain a u8
* SPI
---------
Co-authored-by: Scott Mabin <scott@mabez.dev>
2025-01-03 14:46:39 +00:00
Dániel Buga
337b3cc6b7
Use _CONFIG_
to separate config prefix and key ( #2848 )
...
* Use two underscores to separate prefix
* Change separator to _CONFIG_
---------
Co-authored-by: Scott Mabin <scott@mabez.dev>
2025-01-03 14:36:30 +00:00
Björn Quentin
dc2b968491
qa-test ( #2871 )
...
* Run multiple examples/tests
* Adapt some qa-tests
2025-01-03 14:31:19 +00:00
Dániel Buga
19eb7728bb
Allow clippy to break API, ignore a few initialism errors ( #2840 )
2025-01-03 14:13:07 +00:00
Björn Quentin
551386216e
Mention performance considerations ( #2881 )
2025-01-03 12:34:52 +00:00
Dániel Buga
1f929af377
Remove redundant config setters ( #2847 )
...
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2025-01-02 09:55:37 +00:00
Sergio Gasquez Arcos
06a15807e3
Fix C-METADATA
violations ( #2874 )
...
* fix: C-METADATA violations of esp-hal
* feat: Normalize keyword and categories for most of the pacakges
2025-01-02 09:44:27 +00:00
Anthony Grondin
0f384992cf
Update smoltcp to 0.12.0
and embassy-net to 0.5.0
( #2849 )
...
* chore: Update smoltcp to `0.12.0` and embassy-net to `0.5.0`
* Add CHANGELOG entry
* Remove `wifi_dhcp_smoltcp_nal.rs` example
`smoltcp-nal`, a core dependency on which this example depends on doesn't receive the desired amount of maintainability needed to keep up to date with new dependencies releases.
2025-01-02 09:41:31 +00:00
Björn Quentin
36095e447e
Hide Info,State,Instance ( #2856 )
...
* Hide Info,State,Instance
* Fix lp_gpio macro
* Fix visibility
2024-12-23 13:57:31 +00:00
Dániel Buga
c2de8a1859
Mark SPI slave as unstable ( #2853 )
2024-12-20 15:23:29 +00:00
Juraj Sadel
b9ebeb1809
Solve unstable inconsistencies in SPI master driver ( #2852 )
...
* Solve unstable unconsistencies in SPI master driver
* Mark Command, Address, and DataMode unstable as well
2024-12-20 14:49:59 +00:00
Kirill Mikhailov
8b16365c2d
Make ConfigError
enum follow naming convention ( #2855 )
...
* Make `ConfigError` follow naming convention
* changelog entry
* !(changelog entry)
2024-12-20 14:36:54 +00:00
Kirill Mikhailov
62c72947dd
Multiple API fixes in UART driver ( #2851 )
...
* Close a number of issues
doctest update
fmt
* changelog entry
* dumb
* addressing reviews
* Add an entry to migration guide
2024-12-20 14:01:11 +00:00
Kirill Mikhailov
286219707c
I2C: Prefer compile-time checks over runtime checks where possible, prefer a fallible API over panics. ( #2831 )
...
* I2C module improvements (raw)
* fmt
* dumb
dumb2
dumb 3
dumb 4
dumb 5
* re-use `ExceedingFifo` instead of new `ExceedingTransactionSize` error
* changelog entry
* address reviews
* rebase
* dumb 6
* rebase
...
2024-12-20 13:18:28 +00:00
Dániel Buga
d66e153686
Remove Pin::gpio_bank ( #2850 )
2024-12-20 12:33:10 +00:00
Dániel Buga
7f8af8a651
Remove prelude ( #2845 )
...
* Remove prelude
* Changelog
2024-12-20 10:24:57 +00:00
C2D
2e6a95ac99
Add SpiDmaBus::split
for moving between manual & automatic DMA buffers ( #2824 )
...
* Allow swapping dma buffers
* Deconstruct makes more sense
* Format
* Changelog
* Race-conditioned
* Change SpiDmaBus::deconstruct name to SpiDmaBus::split
* Add flush & bracket references
* Fix mutability
* Fix name of generic param
---------
Co-authored-by: ferris <ferris@devdroplets.com>
Co-authored-by: Dániel Buga <bugadani@gmail.com>
2024-12-20 09:23:33 +00:00
Björn Quentin
5c30c925ca
Make more SPI interrupts available ( #2833 )
...
* Make more SPI interrupts available
* CHANGELOG.md
* SPI interrupts for ESP32/ESP32-S2
* Fix
* Don't offer error interrupts
* Change doc wording
* Renaming
* Rebase fun
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-12-20 07:54:58 +00:00
Scott Mabin
f83ab23f04
Avoid abbreviations in API ( #2844 )
...
* Avoid abbreviations in API
* changelog/migration
2024-12-19 14:39:40 +00:00
C2D
f1c372f250
Fix SpiDmaBus write impl ( #2843 )
...
* Fix SpiDmaBus write impl
* Add hil test for SpiDmaBus::{read,write}
---------
Co-authored-by: ferris <ferris@devdroplets.com>
2024-12-19 13:57:21 +00:00
Dániel Buga
151e66c3b3
Implement missing traits on GPIO types ( #2842 )
2024-12-19 11:31:54 +00:00
Dániel Buga
a3b3547212
Implement some missing traits ( #2823 )
2024-12-19 10:58:49 +00:00
Jesse Braham
1fff464b66
Derive common traits for various types in uart
and i2c
drivers ( #2825 )
...
* Derive `Eq` for `uart::ConfigError`
* Derive common traits in `i2c::master` module for various types
* Update `CHANGELOG.md`
* Implement `Display` and `Error` traits for I2C/UART error types
* Remove `PartialEq` and `Eq` derives from I2C driver
2024-12-19 10:10:30 +00:00
Jesse Braham
036d08e09f
Annotate builder functions with #[must_use]
( #2841 )
2024-12-19 10:10:23 +00:00
Dániel Buga
cde6169d6d
Walk back on PartialEq/Eq ( #2834 )
2024-12-19 09:00:35 +00:00
Sergio Gasquez Arcos
d4386adfc7
Rename Spi enums ( #2828 )
...
* feat: Rename Spi enums
* docs: Update changelog
* feat: Rename crate::Mode to crate::DriverMode
* docs: Udpate changelog
* feat: Rename DM type parameter to Dm for ECC
* style: rustfmt
* feat: Rename crate::Mode to crate::DriverMode
2024-12-19 08:41:59 +00:00
Dániel Buga
97598968eb
GPIO: prevent woken task interrupting GPIO handler ( #2838 )
...
* Clear interrupt bit before allowing waker to wake a task
* Add test
2024-12-19 07:53:48 +00:00
Dániel Buga
b8f15f0a8b
Refine API-GUIDELINES recommendations ( #2832 )
...
* Refine C-COMMON-TRAITS recommendations
* Recommend deriving Error
* Clarify that Instance, State and Info are private implementation details at this point
2024-12-19 07:08:25 +00:00
Dániel Buga
f2b958b501
Convert into c_char ( #2837 )
2024-12-18 18:59:28 +00:00
Dániel Buga
f7c1bdbfc5
Implement Hash and defmt::Format for InterruptHandler ( #2830 )
2024-12-18 16:27:27 +00:00
Scott Mabin
78c63a7a0f
fix link to esp-wifi self hosted docs ( #2836 )
2024-12-18 14:43:38 +00:00
Dániel Buga
af8eaea1e3
Pin 1.83.0.1 in CI ( #2835 )
2024-12-18 12:29:48 +00:00
Juraj Sadel
1684ba10f0
Rename TOUCHMODE to Tm ( #2829 )
2024-12-18 08:37:09 +00:00
Dániel Buga
2ca1545b50
SPI: Implement interrupt-driven transfer_in_place_async
( #2691 )
...
* Implement transfer_async
* The start of our shiny future
* Add State
* Wake from interrupt
* Rename and remove return value
* Fix register write
* Fix S2
* Rename traits
* Async flushes
* Flush before async operations
* Fix comments
* Rename start fn, place async handler in RAM
* Explicitly stop listening before async operations
2024-12-18 07:32:12 +00:00
Frostie314159
f990957f21
Updated PACs and made Wi-Fi non virtual on the ESP32. ( #2822 )
2024-12-17 16:54:51 +00:00
Juraj Sadel
d9f1e9a53f
Rename DM type parameter to Dm ( #2821 )
...
* Rename DM type parameter to Dm
* Rename M, DmaMode, MODE type parameters to Dm
* fmt
2024-12-17 16:49:23 +00:00
Scott Mabin
85d30e9816
Updates for Xtensa enabled 1.83 compiler ( #2615 )
...
* test ci
* fix ci with new compiler
* god bless clippy fix
* refmuts
* clippy
* tests work
* use new compiler
* use new compiler
* bump MSRV of esp-hal and crates that depend on esp-hal
* fix eyesore
* clippy again
* remove hardcoded compiler version
* bump rust-version as well
* note MSRV bump in changelog
2024-12-17 15:02:03 +00:00
Dániel Buga
a12e7fece1
Fix WIFI_EVENT ( #2817 )
...
* Fix WIFI_EVENT
* Update esp-wifi/src/common_adapter/mod.rs
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
---------
Co-authored-by: Dominic Fischer <14130965+Dominaezzz@users.noreply.github.com>
2024-12-16 11:53:45 +00:00
Dániel Buga
bc0bedd628
Add priority-limited locks ( #2684 )
...
* Add priority-limited locks
* Rename to RawMutex, only provide lock() publicly
* Explode implementation and move into the interrupt module
2024-12-16 08:39:42 +00:00
Juraj Sadel
3a03dd88c7
Prefer line comments // over block comments /* */ ( #2738 )
...
* Prefer line comments // over block comments /* */
* esp-wifi: Prefer line comments // over block comments /* */
* Mention in our API guideline that // should be prefered over /* */
2024-12-12 15:53:38 +00:00
Dániel Buga
cc4e527eaf
Fix async USB OTG-FS driver ( #2742 )
...
* Use unwrap macro
* Clean up reset
* Better replicate synopsys init
* Fix indentation
* Clean up constructor
* Initialize before poll
* Remove prefix
* Keep the Usb PeripheralGuard around
* Remove example addition
2024-12-12 13:16:32 +00:00
Kaspar Schleiser
d66281609b
esp-hal: otg_fs: drop obsolete late cnak quirk ( #2621 )
...
* esp-hal: otg_fs: drop obsolete late cnak quirk
* build: bump embassy-usb-synopsys-otg to 0.2.0
2024-12-11 23:49:16 +00:00
Björn Quentin
62994578c2
Fix qa-test build.rs ( #2722 )
...
* Fix qa-test build.rs
* Once is enough
2024-12-10 15:32:29 +00:00