Sergio Gasquez Arcos
b5f0246129
Reordered RX-TX pairs to be consistent ( #2074 )
...
* feat: Update rx-tx order in i2s
* feat: Update rx-tx order in dma macros
* feat: Update rx-tx order in spi
* feat: Update rx-tx order in aes
* feat: Update rx-tx order in mem2mem
* feat: Update rx-tx order in twai and split methods
* feat: Update rx-tx order in twai
* feat: Update rx-tx order in twai and uart docs
* docs: Add sentence about order
* docs: Update changelog
* feat: Update rx-tx order in embassy_interrupt_spi_dma tests
* style: Rustfmt
* docs: Migrating guide
* fix: Typo
Co-authored-by: Dániel Buga <bugadani@gmail.com>
* fix: Diff
Co-authored-by: Dániel Buga <bugadani@gmail.com>
* fix: Tests rx-tx order
* fix: Update new_with_default_pins order
* feat: Update rx/tx order in hil_test::common_test_pins!
* feat: Update dma_extmem2mem example
* fix: Revert deleted input arg
* style: rustfmt
* feat: Disable test_asymmetric_dma_transfer for S2
---------
Co-authored-by: Dániel Buga <bugadani@gmail.com>
2024-09-06 09:56:10 +00:00
Juraj Sadel
17daa464ba
Enable ESP32 HIL ( #1977 )
...
* Enable ESP32 HIL
* RMT fixed
* SPI DMA partially works, _pcnt tests not working
* bckup
* finish
* readme and cleanup
* rebase + cleanup
* RMT S2 pin typo + clean forgotten comments
* review comments
* update 10000
* indentation
* replace cfg gate with cfg_if
2024-09-06 08:53:27 +00:00
Dániel Buga
99bf346898
Remove the need to manually pass clocks around ( #1999 )
...
* Clean up passing clocks to drivers
* Update changelog
* Initialise Clocks in a critical section
* Fix calling now() before init
* Fix doc
* Fix esp-wifi migration guide
* Add safety comment
* Update tests
2024-09-04 14:13:51 +00:00
Kirill Mikhailov
9bec6a1806
Adding I2C HIL test ( #2023 )
...
* i2c hil test
* pin
* fmt
* Test
* WIP (gpio test left)
* Finalize the CODE part (to be cleaned up)
fmt
* Smaller cleanup
* cleanup
* rebase
* fix
* getting last chips ready
* Addressing reviews
2024-09-04 12:45:58 +00:00
Dániel Buga
447411fb58
Rework hal initialization ( #1970 )
...
* Rework hal initialization
* Turn sw interrupt control into a virtual peripheral
* Return a tuple instead of a named struct
* Fix docs
* Remove SystemClockControl
* Move software interrupts under interrupt
* Re-document what's left in system
* Update time docs
* Update sw int docs
* Introduce Config
* Fix tests
* Remove redundant inits
* Doc
* Clean up examples&tests
* Update tests
* Add changelog entry
* Start migration guide
* Restore some convenience-imports
* Remove Config from prelude
2024-09-02 13:38:46 +00:00
Dániel Buga
ec130877b7
Disable RTT polling in HIL tests by default ( #1960 )
...
* Disable defmt-rtt by default
* Update i2s test based on changes done to async
* fmt
* Update readme
* Update more tests
2024-08-19 13:47:22 +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
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
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
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
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
03548807fc
Add additional HIL tests for UART ( #1511 )
2024-04-26 10:02:45 +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
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
Scott Mabin
21d833d2a3
Refactor testing, add defmt, add async gpio test ( #1363 )
...
* Refactor testing, add defmt, add async gpio test
* Add test to ensure the some edge case pins can be used in async mode
* Add test for pin0
* clippy
* update test to use constants extracted from esp-idf's soc module
* address review comments
* simplify test to just initialize one pin as async
* changelog
2024-04-02 15:28:15 +00:00
Scott Mabin
d5e4995777
uart: allow driver to init as blocking or async ( #1294 )
...
* uart: allow driver to init as blocking or async
* adds a mode type param to Uart types
* remove #[interrupt] usage
* add constructor for blocking and async modes
* blocking constructor takes optional interrupt
* async chooses the correct handler to bind at runtime
* moves interrupt enable for uart into the driver
* changelog
2024-03-21 21:51:09 +00:00
Sergio Gasquez Arcos
baea915935
Add HIL testing ( #1297 )
...
* Create the `hil-test` package
* Add a simple integration test to verify basic GPIO functionality
* WIP
* feat: Update with esp-hal unification
* build: Update dependencies
* feat: Add a simple CI workflow test
* ci: Avoid using a gh-hosted-runner to build
* ci: Remove building bins in gh-hosted-runner
* ci: Remove HIL Gpio CI test
* ci: Test all the available tests
* test: Add spi_full_duplex test
* docs: Add documentation
* test: Add uart test
* style: Remove unused imports
* docs: Update wiring, document H2 VM
* ci: Enable H2 tests
* ci: Add rust-cache action
* docs: Document H2 vm
* test: Add timeout
* ci: Enable ESP32-C3 tests
* feat: Add timeouts
* feat: Add aes test
* ci: Avoid running CI workflow when we change hil-test stuff
* test: Remove warnings
* feat: Address feedback
* feat: Update features names and spi methods
* ci: Remove rust-cache action
* Update HIL to probe-rs#2292 (#1307 )
* feat: Update probe-rs/embedded-test to probe-rs#2292
* feat: Remove lib
* ci: Use a matrix
* ci: Enable ESP32C3
* feat: Add a way to cfg away test for unsuported peripherals
* ci: Update trigger conditions
* feat: Update pins to make it work on s3
* feat: Changes enabling S3
* feat: Remove log feature
* feat: Adapt for rebase
* feat: Remove env
* feat: enable S3
* chore: Remove todo
* build: Pin dependencies
* feat: Add target alias
* docs: Update readme
* fix: Fix traits imports after rebase. Use debug
* build: Remove lto
* feat: Build tests on release mode
---------
Co-authored-by: Jesse Braham <jesse@beta7.io>
2024-03-21 14:28:27 +00:00