10366 Commits

Author SHA1 Message Date
Ralph Ursprung
4a089fe245
rp: add missing Debug and defmt::Format derives for ADC
this doesn't cover every `struct` & co. in `embassy-rp`, but at least it
adds those needed for `Adc` and `adc::Channel`.
2025-05-15 18:38:04 +02:00
Ralph Ursprung
05bfbacee5
embassy-nxp: make defmt optional
also enable it on all dependencies (where available).

this is needed because in a next commit we'll add code to
`embassy-hal-internal` which uses the feature in a macro, as it expects
`defmt` to be optional in all embassy HALs. this was the only HAL where
that wasn't the case.

note that this is a breaking change for consumers! if you wish to use
`defmt` in `embassy-nxp` you now need to enable the feature.
2025-05-15 18:38:04 +02:00
i509VCB
8eb5282c6c
Merge pull request #4072 from felipebalbi/add-flexcomm-uart
imxrt: Add UART and DMA drivers
2025-05-15 16:32:46 +00:00
Ralph Ursprung
117eb45fa0
add the possibility to document bind_interrupts structs
the `bind_interrupts` macro creates a `struct` for the interrupts. it
was so far not possible to document those (except for STM32) and there
was no generic documentation being generated/added either, thus the
`missing_docs` lint was triggered for consumers which enabled it.

with this change it is now possible to manually add a comment on the
`struct` being defined in the macro invocation.

to show that this works one RP example has been modified accordingly.
2025-05-15 18:27:40 +02:00
Felipe Balbi
d64ae225b3 Add UART and DMA drivers
Both blocking and async versions are supported. Add separate examples
for each mode.
2025-05-15 07:22:49 -07:00
Ulf Lilleengen
d1c2ce927a
Merge pull request #4202 from 0e4ef622/nrf-3v3
nrf: _3v3 -> _3V3
2025-05-15 06:05:38 +00:00
Matthew Tran
ad091324a7 nrf: _3v3 -> _3V3 2025-05-14 22:26:55 -05:00
Dario Nieuwenhuis
eb68a81c2a
Merge pull request #4199 from Jacke-debug/update_doc_comment_for_adc_read
Update doc comment for adc read to match current implementation
2025-05-14 17:05:55 +00:00
Jakob
b17da5b794
Merge branch 'embassy-rs:main' into update_doc_comment_for_adc_read 2025-05-14 18:57:49 +02:00
Jakob
a71642ca01 Fix compile error in adc_read doc comment code 2025-05-14 18:57:00 +02:00
Dario Nieuwenhuis
b9ed61cdd9
Merge pull request #4198 from turnaroundfactor/interrupt_docs
Interrupt Doc Comments
2025-05-14 14:21:04 +00:00
jake-taf
be20c708fa
Interrupt Doc Comments
Support adding doc comments to interrupts
2025-05-14 09:45:20 -04:00
Dario Nieuwenhuis
870296fcd4
Merge pull request #4195 from i509VCB/std-test-aarch64
ci: build std examples on aarch64-unknown-linux-gnu (local)
2025-05-14 08:39:36 +00:00
Gerhard de Clercq
2bbc2045a4 [usb-dfu examples] Alert users to customise their WinUSB GUIDs 2025-05-14 09:56:28 +02:00
Gerhard de Clercq
d4d10bad0b [embassy-usb-dfu] accept closure to customise DFU function
This provides a more generic interface for users to customise the DFU function instead of restricting customisation to DFU headers.
2025-05-14 09:52:46 +02:00
i509VCB
8bb25a551a
ci: build std examples on aarch64-unknown-linux-gnu 2025-05-13 22:53:16 -05:00
i509VCB
f41e8c45f6
mspm0: generate feature per chip + package 2025-05-13 21:55:50 -05:00
Dario Nieuwenhuis
5a19b64fec
Merge pull request #4187 from 1-rafael-1/rp235x-overclocking
RP235x overclocking
2025-05-13 21:45:22 +00:00
Marvin Gudel
58383465d5 Fix example for rp235x 2025-05-13 23:30:55 +02:00
Dario Nieuwenhuis
5caa4ac51b
Merge pull request #4124 from mickem/allow_stm32_to_re_init_rcc
Add function to allow re-init rcc config for stm32
2025-05-13 20:57:33 +00:00
Dario Nieuwenhuis
438c7e923a
Merge pull request #4182 from felipebalbi/add-rng
Add Embassy-iMXRT RNG driver
2025-05-13 22:58:25 +02:00
Marvin Gudel
fd9ed3924c Fix example 2025-05-13 22:49:35 +02:00
Marvin Gudel
edcbfeb152 Make bit-depth of I2S PIO program configurable
Also the channel argument is removed, since only 2 channels are supported.
2025-05-13 22:36:28 +02:00
Dario Nieuwenhuis
102258c0b0
Merge branch 'main' into add-rng 2025-05-13 22:33:56 +02:00
Dario Nieuwenhuis
aa85293457
Merge pull request #4181 from felipebalbi/add-crc
Add Embassy-iMXRT CRC driver
2025-05-13 22:28:15 +02:00
Gerhard de Clercq
46e25cbc5f [embassy-usb-dfu] correct comment about composite devices 2025-05-13 15:13:46 +02:00
Gerhard de Clercq
f7c796e3cc
Merge branch 'embassy-rs:main' into dfu-msos 2025-05-13 14:59:03 +02:00
Ulf Lilleengen
575eab3c60
Merge pull request #4185 from 9names/update_rp_rt_feature_docs
Clarify embassy-rp rt feature purpose
2025-05-13 13:59:02 +02:00
Ulf Lilleengen
1c8786ceed
Merge pull request #4186 from 0e4ef622/nrf53-ipc
nrf5340: Add IPC peripheral
2025-05-13 13:58:43 +02:00
1-rafael-1
981ef20f83 removed one line too many 2025-05-13 10:59:11 +02:00
1-rafael-1
1314808b3a Changes after review: copypasted doc comment fixed and no cfg gates to panic on failing pll config in init() 2025-05-13 10:49:23 +02:00
1-rafael-1
abafbed0d5 remove Debug2Fmt from examples 2025-05-12 21:43:17 +02:00
1-rafael-1
be1b679d48 Refactor CoreVoltage enum, separate for rp2040 and rp235x 2025-05-12 21:42:03 +02:00
1-rafael-1
79e452922a Add ClockError enum and update system_freq to return Result for error handling 2025-05-12 21:33:47 +02:00
Gerhard de Clercq
3c73b49790 [embassy-usb-dfu] support function level WinUSB GUIDs
This commit makes it possible to provide function level msos GUIDs to usb_dfu. This helps to ensure that composite DFU devices automatically get assigned the WinUSB driver on Windows.
2025-05-12 15:55:11 +02:00
1-rafael-1
133500167c limit CoreVoltage eum to values up to 1.30V, because we do not support unlocking higher voltages 2025-05-12 09:45:05 +02:00
Matthew Tran
a0a339d01a nrf: Rework IPC module 2025-05-11 22:15:12 -05:00
1-rafael-1
4567beda7b rp235x overclocking 2025-05-11 17:26:36 +02:00
Alessandro Gasbarroni
967a98fd44 nrf: Add IPC peripheral for nRF5340 2025-05-10 17:08:52 -05:00
9names
ee71dda631 Clarify embassy-rp rt feature purpose 2025-05-10 20:03:09 +10:00
Ulf Lilleengen
f9f20ae217
Merge pull request #4155 from marcemmers/remove-instance-from-rp-uart-type
[embassy-rp] Remove <T: Instance> from Uart and BufferedUart
2025-05-09 19:34:52 +02:00
Ulf Lilleengen
11364077a7
Merge pull request #4150 from 1-rafael-1/rp2040-overclocking
RP: rp2040 overclocking
2025-05-09 19:34:43 +02:00
Ulf Lilleengen
2a27aa828c
Merge pull request #4173 from phycrax/derive-for-pwmpincfg
[embassy-stm32] Derive Debug, Clone, Copy, defmt::Format for simple_pwm::PwmPinConfig
2025-05-09 16:48:41 +02:00
Felipe Balbi
8e7e4332b4 Add embassy-imxrt RNG driver 2025-05-09 07:25:23 -07:00
Felipe Balbi
d4c378e059 Add embassy-imxrt CRC driver 2025-05-09 07:21:40 -07:00
Ulf Lilleengen
64a2b9b2a3
Merge pull request #4170 from yutannihilation/chore/fix-unsafe-attribute-rust2024
chore: Wrap `link_section` attribute in example code with `unsafe()` for compatibility with Rust 2024 edition
2025-05-09 13:05:23 +02:00
Ulf Lilleengen
aa8703360e
Merge pull request #4168 from yutannihilation/fix/rotary-encoder-rxf-negative-value
Fix `rotary_encoder_rfx` example to handle negative values
2025-05-09 12:39:37 +02:00
Ulf Lilleengen
4dbaa01870
Merge pull request #4175 from felipebalbi/imxrt-rtos-timer
iMXRT OS timer
2025-05-09 12:39:11 +02:00
Ulf Lilleengen
8b80195843
Merge pull request #4176 from matt-rodgers/cdc-acm-embedded-io-async
Implement embedded-io-async traits for USB CDC ACM
2025-05-09 12:38:52 +02:00
Ulf Lilleengen
e0920e8c66
Merge pull request #4178 from diondokter/opamp-fix
Stm32: Fix opamp copy pasta mistake
2025-05-09 08:51:23 +00:00