Juraj Sadel
45c8107ecd
esp-hal: remove warnings in PCNT example and HIL test ( #1793 )
2024-07-15 10:49:39 +00:00
Dominic Fischer
0cae79b4cc
Improve PCNT API (with HIL tests) ( #1765 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-07-15 09:31:35 +00:00
Jesse Braham
dcc6c896de
Housekeeping: fix warnings, rename some examples, etc. ( #1786 )
...
* Build HIL tests for ESP32 in CI, fix resulting build errors
* Fix some warnings in the `hil-test` package
* Fix warnings in examples
* Remove "esp_" prefix from Wi-Fi example file names
* Resolve the last of the known warnings
2024-07-12 09:35:55 +00:00
Dominic Fischer
bb8660d3c5
Add SPI Half Duplex Read HIL test ( #1782 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-07-11 12:55:59 +00:00
Scott Mabin
6c3ccb6043
Add read_bytes method to uart ( #1784 )
...
* Add read_bytes method to uart
* Changelog
2024-07-11 12:55:42 +00:00
Jesse Braham
eb9bfd52b1
Fix clippy warning in esp-wifi, remove Cargo patch and update semihosting dependency ( #1778 )
...
* Update `semihosting` dependency and remove Cargo patch
* Fix clippy error in `esp-wifi`
2024-07-09 09:50:09 -07:00
Björn Quentin
a5be31fadc
Improve and use timer abstractions ( #1753 )
...
* Make esp-wifi timer agnostic
* Use timer-abstractions in embassy time driver
* Refactor
* Fix
* Fix
* Docs
* Adapt examples
* Adapt tests
* Refactoring
* Changelogs
* Fix example
* Adapt xtask
* Make CI pass
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-07-09 15:59:38 +00:00
Sergio Gasquez Arcos
8e0a2012dc
Update module documentation ( #1763 )
...
* docs: Update GPIO docs
* docs: Update other GPIO modules docs
* docs: Update AES mod documentation
* docs: Update Analog and ADC mod documentation
* docs: Update DAC mod documentation
* docs: Update lib docs
* docs: Update clock mod documentation
* docs: Update dma mod documentation
* docs: Update interrupt mod documentation
* docs: Update lcd_cam mod documentation
* docs: Update ledc mod documentation
* docs: Update mcpwm mod documentation
* docs: Update pcnt mod documentation
* docs: Update rom mod documentation
* docs: Update rsa mod documentation
* docs: Update rtc_cntl mod documentation
* docs: Update spi mod documentation
* docs: Update timer mod documentation
* docs: Update twai mod documentation
* docs: Format headers
* style: Fix fmt
* refactor: Change visibility instead of hidding docs
* style: Fix header
* Fix typo
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
* Fix typo
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
* Fix typo
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
* Fix typo
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
* Fix typo
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
* docs: Add tracking issue
* docs: Remove architecture and simplify sentence
* fix: Update visibilities remove hidden docs
* Fix type
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
* docs: Improve wording
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
---------
Co-authored-by: Juraj Sadel <jurajsadel@gmail.com>
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-07-09 15:40:31 +00:00
Scott Mabin
e75d43d3f0
Fix new clippy lints introduced in 1.78 & 1.79 ( #1776 )
...
* Fix new clippy lints introduced in 1.78 & 1.79
* Patch semihosting
2024-07-09 13:23:19 +00:00
Kirill Mikhailov
163f45076e
Enable i2s HIL test for esp32h2 ( #1755 )
...
Delete invalid comment
2024-07-04 15:28:37 +00:00
Sergio Gasquez Arcos
786682c0b2
HIL: Erase flash on failure ( #1748 )
...
* ci: Erase flash on failure
* docs: Add espflash install instructions and fix format
2024-07-04 07:50:40 +00:00
Dominic Fischer
c62bd8b332
Add PCNT HIL test ( #1746 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-07-04 06:23:14 +00:00
liebman
cc7077624c
dma: add Mem2Mem to support memory to memory transfer ( #1738 )
...
* dma: add Mem2Mem to support memory to memory transfer
* fmt
* update CHANGELOG
* removed some debugging
* use "gdma" as the selector for support
* fix empty else
* clippy
* Mem2Mem::new now accepts the peripheral to use
* mark Mem2Mem::new() unsafe
* fmt :-/
* add Mem2MemN values for gdma on non-esp32s3
tested on esp32c3,esp32c6 (will have an esp32h2 in a few days)
* support the esp32c2 (esp8684)
* DmaEligible trait providing dma peripheral value & safe constructor for Mem2Mem dma.
* added hil-test for Mem2Mem
* fmt dma_mem2mem test
* remove `debug!()`
* reset the mem2mem bit (mem_trans_en) in in_conf0 on drop
2024-07-03 17:56:37 +00:00
Kirill Mikhailov
cd0272ee81
Make links be in the same format
2024-07-03 12:53:17 +02:00
Kirill Mikhailov
f177b945b7
docs: Add missing link to HIL README
2024-07-03 12:53:17 +02:00
Sergio Gasquez Arcos
d0cd890e51
Update some modules documentation ( #1726 )
...
* docs: Add inverting documentation and examples
* docs: Update I2C mod docs
* docs: Update LEDC documentation
* docs: FIx format
* Fix a typo in docstring in `esp-hal/src/uart.rs`
---------
Co-authored-by: Jesse Braham <jessebraham@users.noreply.github.com>
2024-06-27 16:50:30 +00:00
Dominic Fischer
7753551671
[2/3] DMA Move API: Move DMA descriptors to peripheral drivers ( #1719 )
...
Co-authored-by: Dominic Fischer <git@dominicfischer.me>
2024-06-26 14:31:41 +00:00
Sergio Gasquez Arcos
e46e80b8c1
Enable C2 HIL ( #1680 )
...
* ci: Enable c2 hil
* docs: Update pins and add C2
* feat: Update C2 probe-rs args
* test: Update pins and disable failing tests
* docs: Update S3 wires
* ci: Enable C2 hil tests
2024-06-26 14:17:40 +00:00
Björn Quentin
d34a872230
Additional move base dma api ( #1672 )
...
* Additional owning DMA transfers for SPI half-duplex
* CHANGELOG.md
* CHANGELOG.md
* Clippy
2024-06-19 13:17:22 +00:00
Björn Quentin
1630868d06
Improve DMA pop implementation ( #1664 )
...
* Improve DMA `pop` implementation
* CHANGELOG.md
* Minor Fixes
* Cover more edge-cases in DMA pop, make sure the test is testing these
* Fixes
* Working available/pop
* Remove misleading `last_in_dscr_address`
* Remove unnecessary check from `available`
* Remove now-unused function
* Remove duplicate change-log entry
2024-06-19 12:51:24 +00:00
Sergio Gasquez Arcos
e7f8f50e82
Update embedded-tests and wiring docs ( #1652 )
...
* build: Update embedded-test
* docs: Update probe-rs version
* docs: Revert probe-rs update
* docs: Update wiring
* docs: Update source command
2024-06-12 10:12:04 +00:00
Björn Quentin
1122df15e2
Check DMA descriptors and buffers addresses ( #1670 )
...
* Check DMA descriptors and buffers addresses
* Add PR id
* Add test for the memory region check
* Clippy
2024-06-11 14:42:46 +00:00
Sergio Gasquez Arcos
a33159a021
Rework Uart constructors, add UartTx and UartRx constuctors. ( #1592 )
...
* feat: Add with_pins methods for UART
* feat: Remove configure_pin methods
* docs: Update changelog
* fix: Update tests and examples
* style: Fix format
* Add UartTx/Rx constructors
* feat: Add new_with_default_pins methods
* docs: Update changelog
* feat: Remove optional cts/rts arguments
* feat: Add UartTx/Rx::new_async methods
* fix: Attach interrupt handler to new_ascyn UartRx/Tx
* style: Avoid long module paths
* feat: Make flush_tx public
* test: Use Uart async instead of UartTx/Rx async
* test: Add tests for UartTx/UartRx
* feat: Add configuration method to constuctors
* feat: Move set_rx_fifo_full_threshold and set_rx_timeout to UartRx
* docs: Fix changelog
* test: Fix executor
* feat: Configure UartRx threshold and timeout
* docs: Update changelog
* test: Update uart instance
* feat: Add default_uart0_pins macro to simplify examples
* feat: Address feedback pt1
* feat: Address feedback pt2 - Make constructors fallible
* fix: Doctest
2024-06-11 13:07:17 +00:00
Björn Quentin
b8af24071e
Add Flex/AnyFlex pin drivers ( #1659 )
...
* Add Flex/AnyFlex pin drivers
* CHANGELOG.md
2024-06-10 15:23:55 +00:00
Björn Quentin
fd4676d434
Add RMT hil-test ( #1665 )
...
* Add RMT hil-test
* Fix compilation error on ESP32/ESP32-S2
2024-06-07 10:31:42 +00:00
Jesse Braham
48e3e912f3
Extract embassy support into esp-hal-embassy package ( #1595 )
...
* Extract embassy support into `esp-hal-embassy` package
* Update relevant packages/examples/tests to get CI green again
* Add back `defmt` support
* Re-export `Executor` and `InterruptExecutor` rather than making `executor` module public
* Document the `esp-hal-embassy` package
* Update `CHANGELOG.md`
* Hack together a "fix" for the `SYSTIMER` time driver
* Make `clippy` shut up
2024-06-03 11:27:20 +00:00
Jesse Braham
40c327eeae
Housekeeping ( #1647 )
...
* Remove version from path dependencies in `examples` and `hil-test` packages
* Remove unused constant from `esp-println`
* Consistent badges across `README.md` files
2024-05-31 13:58:54 +00:00
Björn Quentin
79d617da38
Add I2S HIL test ( #1635 )
...
* Add I2S HIL test
* Disable I2S HIL test for H2
* Disable interrupt latency test for now
* Avoid triggering rustfmt check
2024-05-29 13:56:54 +00:00
Scott Mabin
db39d0197a
Examples and test cleanup ( #1590 )
...
* initial cull of examples
* Remove direct vector example, replace with interrupt latency test
* Remove clock monitor in favour of just a test
2024-05-28 18:58:48 +00:00
Björn Quentin
60e4b882ef
Add esp-storage to esp-hal repo ( #1627 )
...
* Add esp-storage to esp-hal repo
* Include needed feature to lint esp-storage
* Don't lint esp-wifi for now
* Remove redundant copies of license texts
* Try `git-fetch-with-cli`
* Fix esp-pacs URL
* git-fetch-with-cli, again
* desperately trying
2024-05-27 15:28:05 +00:00
Jesse Braham
b98dbe10d2
Top-level README.md updates, change to path dependency for esp-backtrace in hil-test package ( #1588 ) ( #1591 )
...
* Use path dependency instead of git for `esp-backtrace` in the `hil-test` package
* Top-level `README.md` updates
2024-05-24 09:33:18 +00:00
Juraj Sadel
60d39e9f33
GPIO: Use Level enum instead of plain bool in constructors ( #1574 )
...
* GPIO: Use Level enum instead of plain bool in constructors
* changelog
2024-05-22 12:37:03 +00:00
Scott Mabin
9acf72df33
Mention how handlers are run when drivers are moved across cores ( #1568 )
2024-05-21 08:22:35 +00:00
Sergio Gasquez Arcos
3c05759556
Enable gpio::test_gpio_interrupt for Xtensa targets. ( #1555 )
...
* docs: Update probe-rs
* tests: enable test_gpio_interrupt for Xtensa targets
2024-05-15 09:13:43 +00:00
Björn Quentin
2faa2654cb
GPIO Refactoring ( #1542 )
...
* GPIO Refactoring
* CHANGELOG.md
* Addressed review comments
* Use `Level` instead of plain bool in public API
* Let drivers enable analog functions
2024-05-15 08:49:33 +00:00
Kirill Mikhailov
209a82bdc7
Fix delay on esp32h2. ( #1535 )
...
* Fix delay on `esp32h2`
* Add changelog entry
* Enable `esp32h2` chip in `get_time` HIL test
2024-05-03 17:09:17 +00:00
Scott Mabin
f32565b4af
Embassy enable thread and interrupt by default, enable embassy when building docs ( #1485 )
...
* Remove interrupt and thread executor embassy features
* Reserve sw interrupt 3 (4) instead of 0 for multicore systems with the embassy feature enabled
* Remove uneeded #[feature()] from examples
* Fix HIL tests
* Add thread mode context id and fix up examples
* improve embassy module docs
* changelog
* fixup hil tests
* Fixup usb examples
2024-05-02 15:58:04 +00:00
Sergio Gasquez Arcos
edd03717d2
Enable C3, H2, S2 and S3 HIL ( #1513 )
...
* ci: Enable C3, H2, S2 and S3 HIL tests
* feat: Disable H2
* test: Disable S2
* ci: Update test folder
* docs: Update setup
* revert: Revert S2 changes
* ci: Update hil tests targets
* test: Adapt uart test for S2
* ci: Enable H2 HIL
* feat: Filter unsupported targets for the tests failing
* test: Filter failing targets
* ci: Remove the test folder
* test: Filter S2
* feat: Add supported targets
* feat: Remove TODOs and format code
* docs: Remove outdated comment
* feat: Add run-elfs xtask subcommand
2024-05-02 15:35:23 +00:00
Jesse Braham
68a4fb29ed
[1/3] Timer abstraction: refactor systimer and timer modules into a common timer module ( #1527 )
...
* Refactor `systimer` and `timer` modules into a common `timer` module
* Update `CHANGELOG.md`
* Rebase and update new example
2024-05-02 13:27:33 +00:00
Juraj Sadel
db8a5912b7
Add Delay HIL test ( #1415 )
...
* Add HIL test
* fmt
2024-04-29 09:36:45 +00:00
Jesse Braham
03548807fc
Add additional HIL tests for UART ( #1511 )
2024-04-26 10:02:45 +00:00
Björn Quentin
373735f96a
Add current_time ( #1503 )
...
* Add `current_time`
* CHANGELOG.md
* Add HIL test for `current_time`
* Fix after rebase
2024-04-23 14:59:28 +00:00
Jesse Braham
086b6059b9
Remove the SystemExt trait and rename SystemParts to SystemControl ( #1495 )
...
* Convert `SoftwareInterrupt` to a unit struct
* Remove the `SystemExt` trait and rename `SystemParts` to `SystemControl`
* Update all examples an HIL tests to reflect previous API changes
* Clean up imports in `hil-test` package, address `clippy` lint warnings
* Update `CHANGELOG.md`
2024-04-23 13:25:03 +00:00
Scott Mabin
56a7553b2d
Camel case structs ( #1473 )
...
* Remove uneeded usb generics
* Ensure all structs are consistently CamelCased
* changelog
2024-04-22 17:27:53 +00:00
Sergio Gasquez Arcos
20c77891d8
ci: Adapt HIL tests to use RPi ( #1493 )
2024-04-22 14:28:01 +00:00
Scott Mabin
39a75bae90
Improve the top level crate documentation ( #1467 )
2024-04-18 15:50:20 +00:00
Kirill Mikhailov
6f91367d6c
Add mechanism to configure UART source clock ( #1416 )
...
* Creating mechanism for setting UART source clock
* Format + examples updating
* Changelog entry
* Smaller fixes (reviews)
* Move RC_FAST_CLK constant to soc
* Fix REF_TICK value
* Add doc comments
update doc comments
* fmt
2024-04-17 15:27:47 +00:00
Kirill Mikhailov
17492f6b62
Support 192 and 256-bit keys for AES ( #1316 )
...
* Support 192 and 256-bit keys for AES
* quick fix
* Not `panic`ing on wrong key length
* fmt + hil
Update comment
* Add more doc comments
* Use `Key` enum for DMA mode
fix
* API fix: make some critical functions private
* Use `Into<Key>` instead of forcing users to call funcs with `key.into()`
2024-04-16 16:51:25 +00:00
Sergio Gasquez Arcos
1a5ca65eed
Enable S3 HIL ( #1338 )
...
* feat: Add HIL support for S3
* ci: Add dummy s3 job
* test: Filter interrupt test for Xtensa devices
* ci: Install Xtensa toolchain
2024-04-16 12:09:18 +00:00
Sergio Gasquez Arcos
6b742968b1
Add SPI Full Duplex DMA test ( #1443 )
...
* test: Initial SPI Full Duplex DMA tests
* feat: Add timeouts
* tests: Add symestric_transfer_huge_buffer and asymestric_transfer tests
* style: Fix tests names
2024-04-16 10:26:53 +00:00