Commit Graph

6863 Commits

Author SHA1 Message Date
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
James Munns
e3595c61f3
Merge pull request #2480 from ssnover/minor-fix-getting-started-markdown
Fix the backticks on the getting started page
2024-01-26 06:33:24 +00:00
Shane Snover
3c159205a7 Fix the backticks on the getting started page 2024-01-25 22:30:42 -07:00
Dario Nieuwenhuis
fb22b46ebb
Merge pull request #2473 from embassy-rs/jamesmunns-patch-1
Update faq.adoc
2024-01-23 11:13:15 +00:00
James Munns
40e9fc36dc
Update faq.adoc
Don't suggest people disable debuginfo, and explain why
2024-01-23 12:06:28 +01:00
Dario Nieuwenhuis
c1ba008be4
Merge pull request #2471 from embassy-rs/remove-gpio-generics
gpio: remove generics.
2024-01-22 20:44:57 +00:00
Dario Nieuwenhuis
ee0ebe3121 rp/gpio: remove generics. 2024-01-22 21:32:10 +01:00
Dario Nieuwenhuis
2bc5e9523d nrf/gpio: remove generics. 2024-01-22 21:32:10 +01:00
Dario Nieuwenhuis
3387ee7238 stm32/gpio: remove generics. 2024-01-22 21:31:06 +01:00
Dario Nieuwenhuis
9f76dbb93b Remove nightly-only flags from cargo configs. 2024-01-22 21:31:06 +01:00
Dario Nieuwenhuis
20fd03a14f
Merge pull request #2468 from exoticorn/pio_i2s-example
add pio_i2s example for RP2040
2024-01-21 21:30:11 +00:00
Dennis Ranke
7931fcfb3d fix wrong formatting due to not using nightly rustfmt 2024-01-20 16:35:09 +01:00
Dennis Ranke
69d4b42841 add pio_i2s example for RP2040 2024-01-20 16:08:32 +01:00
Dario Nieuwenhuis
43b6258a69
Merge pull request #2416 from andresv/stm32-fix-buffered-uart-flush
stm32: fix buffered uart flush
2024-01-20 01:50:55 +00:00
Dario Nieuwenhuis
da3884ff68
Merge pull request #2282 from umgefahren/extend-cyw43-bss-info
feat: Extended the Scan API
2024-01-20 01:40:30 +00:00
Dario Nieuwenhuis
67159d80bb
Merge pull request #2429 from jr-oss/stm32_simple_pwm_add_set_output_compare_mode
stm32/simple_pwm: add set_output_compare_mode
2024-01-20 01:33:49 +00:00
Dario Nieuwenhuis
326bff322e
Merge pull request #2415 from hdoordt/patch-1
Make adc::Resolution::to_max_count const
2024-01-20 01:31:22 +00:00
Dario Nieuwenhuis
2fd391240d
Merge pull request #2466 from embassy-rs/fix-h7-tests
tests/stm32: fix h7 wrong smps config.
2024-01-20 01:18:51 +00:00
Dario Nieuwenhuis
7696b1c0b8 tests/stm32: fix h7 wrong smps config. 2024-01-20 01:52:21 +01:00
Dario Nieuwenhuis
777c018623
Merge pull request #2408 from eZioPan/petting-gh-linguist
mark json file inside .vscode folder as jsonc
2024-01-20 01:50:26 +01:00
Andres Vahter
ec2e3de0f4 stm32 uart: fix buffered flush for usart_v1, usart_v2
There is one caveat. For some reason with first send using usart_v1/usart_v2 TC flag appears right after first byte from buffer is written to DR. Consecutive transfers work as expected - TC flag appears when last byte is fully transferred to wire.
2024-01-20 00:15:40 +01:00
Andres Vahter
534c53c901 stm32 uart: remove unwrap
unwraps take more space because of panics
2024-01-20 00:15:40 +01:00
Andres Vahter
c936d66934 stm32 uart: fix flush for non usart_v4 variants
Byte was written to TDR and right after that waker was called. This means `flush` would see that `tx_buf` is empty and can return Ready although actually hardware was still writing this last byte to the wire.
With this change non `usart_v4 ` variants would also use TC interrupt to check when last byte was sent out.
2024-01-20 00:15:39 +01:00
Andres Vahter
17d6e4eefe stm32 uart: do not wake after sending each byte
usart_v4 uses TC interrupt to see if all bytes are sent out from the FIFO and waker is called from this interrupt. This minimises unnecessary wakeups during sending.
2024-01-20 00:15:39 +01:00
Andres Vahter
ec47e931ac stm32: fix buffered uart flush
usart_v4 uses internal FIFO and therefore actually all bytes are not yet sent out although state.tx_buf.is_empty()
2024-01-20 00:15:39 +01:00
Dario Nieuwenhuis
24968629ec cyw43: Unify dwell time. 2024-01-20 00:10:41 +01:00
umgefahren
6ca43030db feat: Extended the Scan API 2024-01-19 23:51:57 +01:00
Dario Nieuwenhuis
a2eb46e9e4
Merge pull request #2258 from ExplodingWaffle/patch-1
make usart::State private
2024-01-19 23:30:47 +01:00