Commit graph

7075 commits

Author SHA1 Message Date
Dario Nieuwenhuis
c4839e4671
Merge pull request #2511 from Ecco/stm32wba-fixed-hse
STM32WBA's high speed external clock has to run at 32 MHz
2024-02-01 19:03:35 +00:00
Romain Goyet
aa767272a8 STM32WBA's high speed external clock has to run at 32 MHz 2024-02-01 13:42:48 -05:00
Taylor Carpenter
72ca5a022b
Add scatter memory files for extended BLE stack
Build script chooses the 'x.in' to copy over to 'tl_mbox.x' based on features
2024-02-01 10:41:41 -05:00
Caleb Garrett
1dbfa5ab72 Added hash v1/v2 configs. 2024-02-01 10:28:12 -05:00
Dario Nieuwenhuis
9769d29c22
Merge pull request #2508 from sinewave-ee/zero-init-ringbuffer
sync/pipe: be able to be zero-initialized
2024-02-01 14:11:45 +00:00
Sam Lakerveld
15e9b60abb
sync/pipe: be able to be zero-initialized 2024-02-01 13:47:07 +01:00
Caleb Garrett
6e9ddd4626 Added hash module with blocking implementation. Included SHA256 example. 2024-01-31 21:21:36 -05:00
Dario Nieuwenhuis
7e02389995
Merge pull request #2410 from eZioPan/waveform-on-CHx
impl waveform with TIM OC Channel DMA
2024-02-01 01:02:01 +00:00
Dario Nieuwenhuis
2f7c8faf51
Merge pull request #2465 from sgasse/sgasse/feature/mii-phy
Implement MII interface with feature flag
2024-02-01 00:49:10 +00:00
Dario Nieuwenhuis
e613324e16 stm32/eth: rename new_rmii to new, update metapac to fix issues with PC2_C. 2024-02-01 01:39:52 +01:00
Simon B. Gasse
42d8f3930a Implement MII interface
- Extend the eth/v2 module to support MII besides RMII.
- Replace `Ethernet::new` with `Ethernet::new_mii` and
  `Ethernet::new_rmii`.
- Update ethernet examples.
- Add example for MII ethernet.
2024-02-01 01:33:34 +01:00
Dario Nieuwenhuis
e05f6505ae
Merge pull request #2505 from CBJamo/timeout_at
Add timeout_at convenience function and example.
2024-01-31 21:31:40 +00:00
Caleb Jamison
0ab0b5590a Fixup docs 2024-01-31 16:28:06 -05:00
Caleb Jamison
8b7d856195 Rename timeout_at to with_deadline 2024-01-31 16:26:11 -05:00
Justin Beaurivage
cc12eb9680 Rustfmt 2024-01-31 14:20:06 -05:00
Justin Beaurivage
d364447a34 Add error handling to UarteRxWithIdle 2024-01-31 14:16:58 -05:00
Caleb Jamison
1e698af05b Add timeout_at convenience function and example. 2024-01-31 14:10:31 -05:00
Dario Nieuwenhuis
68be63c0e8
Merge pull request #2469 from embassy-rs/nrf51-basic-support
feat: add basic support for nRF51 chips to embassy-nrf
2024-01-31 00:20:40 +00:00
Dario Nieuwenhuis
fed8635e93
Merge pull request #2475 from cschuhen/feature/fdcan_r2
Support for FDCAN peripheral as found on newer STM32 micros.
2024-01-30 23:45:14 +00:00
Justin Beaurivage
7ff21e8b8b Handle Uarte RX errors 2024-01-30 17:06:57 -05:00
Corey Schuhen
a14dc8413a Disable h563 test. 2024-01-31 05:43:37 +10:00
Corey Schuhen
6e1047395d HIL test for STM32 FDCAN support.
Internal loopback.

fdcan: use common.rs for HIL test.

Fix tests.

Fix tests.

Fix tests

Add HIL tests for H7 even though they are a bit crippled.

CI fixes

Bah

Test

bah
2024-01-31 05:40:05 +10:00
Corey Schuhen
1698f4dbc3 Add FDCAN examples for STM32G4, STM32H5 and STM32H7
Fix examples

Fix examples

Fix examples.
2024-01-31 05:40:05 +10:00
Corey Schuhen
1de78d0490 Initial FDCAN driver implementation.
Original author:
    Torin Cooper-Bennun <tcbennun@maxiluxsystems.com>

Cleanup and documentaion by:
    Tomasz bla Fortuna <bla@reactor.local>
    Corey Schuhen <cschuhen@gmail.com>

Use new PAC method now that the names are common.

Use broken out definitions that can be shared with bxcan

Populate Rx struct with an embassy timestamp.

Remove use of RefCell.

As per review comment. - THis will probably get squashed down.

Fix
2024-01-31 05:40:05 +10:00
Tomasz bla Fortuna
03ba45065e Add FDCAN clock registers to G4 RCC.
Author: Adam Morgan <adam@luci.com>

Break definitions out of bxcan that can be used innm fdcan.

Typo
2024-01-31 05:40:05 +10:00
Tomasz bla Fortuna
a91a7a8557 Add FDCAN dependency in correct flavor based on selected chip.
Author: Torin Cooper-Bennun <tcbennun@maxiluxsystems.com>

Change from review.
2024-01-31 05:40:05 +10:00
James Munns
dcce40c8a2
Merge pull request #2497 from embassy-rs/james/resource-usage
[FAQ]: Add some comments from chat
2024-01-30 11:42:57 +00:00
James Munns
5e7876c800
Update docs/modules/ROOT/pages/faq.adoc 2024-01-30 12:41:46 +01:00
James Munns
f388074338 Add some comments from chat 2024-01-30 10:34:09 +01:00
Dario Nieuwenhuis
99265ffea4
Merge pull request #2495 from embassy-rs/update-metapac33
update stm32-metapac.
2024-01-30 01:40:32 +00:00
Dario Nieuwenhuis
5b2293e2b1 update stm32-metapac. 2024-01-30 02:34:12 +01:00
James Munns
3cd0a54e0e
Merge pull request #2492 from JomerDev/fix-read_to_break
Fix underflow in embassy-rp uartrx.read_to_break
2024-01-29 16:22:02 +00:00
Jomer.Dev
0708ce1410 Use saturating_sub to make sure we don't overflow 2024-01-29 17:14:23 +01:00
Dario Nieuwenhuis
681393150d
Merge pull request #2487 from Murmele/pwm
PWM Improvements
2024-01-29 14:18:25 +00:00
Dario Nieuwenhuis
415050516b
Merge pull request #2491 from ValouBambou/main
fix: typo in netcat command for std example
2024-01-29 14:17:55 +00:00
Valentin Trophime
283debfda4
fix: typo in netcat command for std example
The previous given command `nc -l 8000` doesn't let me see anything and lead to a "WARN connect error: ConnectionReset". By explicitly changing the `local-port` of `nc` with the `-p` I can now see the `Hello` message printed, and the warning log disappeared.
2024-01-29 11:36:03 +01:00
Martin Marmsoler
319b0fe3d7 Do not wait when the pwm is disabled
Reason: because in this case no seqend event is raised and therefore an infinity loop occurs
2024-01-27 18:21:40 +01:00
Martin Marmsoler
b08a0955c3 implement retriving duty.
Description: When disabling the pwm and enabling again, it is required to restart the sequence. If the previous duty is not known, it is not possible to turn on the pwm again
2024-01-27 18:21:40 +01:00
Ulf Lilleengen
702007f68b
Merge pull request #2485 from 0e4ef622/nrf-spi-bitorder
nrf/spi: add bit order config
2024-01-27 07:51:36 +00:00
Matthew Tran
6efb5fd284 nrf/spi: add bit order config 2024-01-26 22:38:03 -06:00
Dario Nieuwenhuis
c37e483b3b
Merge pull request #2484 from Murmele/main
use constant for the pwm clock
2024-01-26 23:40:02 +00:00
Martin Marmsoler
2809d3bd45 add is_enabled() function 2024-01-26 22:09:49 +01:00
Martin Marmsoler
c26e62e4f4 add documentation 2024-01-26 21:24:14 +01:00
Martin Marmsoler
dd2577fcf0 use constant for the pwm clock
Description: So it can be used outside of the crate to calculate max duty
2024-01-26 20:55:53 +01:00
Dario Nieuwenhuis
31fa0aebd8 executor: update remove portable-atomic comment.
Fixes #2481
2024-01-26 14:26:19 +01:00
Dario Nieuwenhuis
adb024bdbe usb-dfu: add docs metadata. 2024-01-26 14:23:51 +01:00
Dario Nieuwenhuis
73cfa8f8a9
Merge pull request #2482 from LechevSpace/docs/add-usb-dfu-to-docs-ci-build
docs(ci): add embassy-usb-dfu to the docs build
2024-01-26 13:08:02 +00:00
Lachezar Lechev
d4542f4436
docs(ci): add embassy-usb-dfu to the docs build 2024-01-26 12:36:28 +02:00
Ulf Lilleengen
531645e5d4 docs: mention nrf51 2024-01-26 09:11:17 +01:00
Ulf Lilleengen
bea3c5495a use pull-up to ensure we assert the correct change 2024-01-26 09:05:58 +01:00