Commit Graph

8889 Commits

Author SHA1 Message Date
Caleb Jamison
0434798439 Import otp from rp-hal, helper fns for chipid and randid
Again, credit to @thejpster for doing the hard part and figuring out the
otp.
2024-08-29 21:08:25 -04:00
Maxime Vincent
abcb39a58b
Allow bos_descriptor_buf to be a zero-length slice 2024-08-29 17:32:43 +02:00
Caleb Jamison
372270a9b9 rp235x flash support.
The 2350 doesn't have a boot2 like the 2040, but it does have the
concept of a xip setup function that could be customized. By default the
bootrom searches for the attached flash chip and provides an xip setup
func at the base of the bootram. That bootram is not executable, so it
still needs to be copied to ram like boot2 would be.

Currently does not use inline assembly.

Also switch to picotool, as elf2uf2 has not been patched to support the
2350.
2024-08-29 10:47:03 -04:00
Daniel Trnka
22f4459ae2 stm32/usart: sending break character in buffered usart 2024-08-28 21:55:08 +02:00
Dániel Buga
b56e95bf7c Fix a typo 2024-08-28 10:26:48 +02:00
Scott Mabin
f0a8607051
Add block-device-driver impl for use with embedded-fatfs (#2607) 2024-08-26 20:45:57 +02:00
Pedro Ferreira
9347571fea
rp: add example code to flash bluetooth fw (#3290) 2024-08-26 20:28:30 +02:00
Dario Nieuwenhuis
a7bfec2467
Merge pull request #3288 from jbowes/chore/remove-rp-pins-from-mouse-example
chore: Remove unused keyboard code from rp mouse example
2024-08-26 15:00:34 +00:00
James Bowes
d4ab9fc247
chore: Remove unused keyboard code from rp mouse example
The usb mouse example included code copied from the keyboard example to set up
a button, which is not used in the mouse example. Remove it, to make the
example clearer.
2024-08-26 10:56:41 -03:00
Caleb Jamison
0a33edc997 Import rom_data for the rp235x, don't use intrinsics on rp235x
Many thanks to @thejpster for his work on the rom_data!
Working around boot2 is currently a bit hacky for the rp235x, that will
improve in upcoming rp235x flash pr.
2024-08-26 09:43:08 -04:00
Ulf Lilleengen
86ca664655
Merge pull request #3285 from CirrusNeptune/udp-zerocopy
feat(embassy-net): add zero-copy UDP send/recv functions
2024-08-26 05:44:30 +00:00
Cirrus
9b142bd80f feat(embassy-net): add zero-copy UDP send/recv functions
Added recv_from_with and send_to_with. These are conceptually similar
to TCP's read_with and write_with functions.

An application can parse received datagrams directly out of the
receive buffer or assemble a datagram of known-length directly into
the send buffer.
2024-08-25 13:14:36 -07:00
Daniel Trnka
bea1f34440 stm32/usart: sending break character 2024-08-25 21:49:43 +02:00
Ulf Lilleengen
1ff1f00d5a
Merge pull request #3282 from elagil/add_sai_is_muted
feat: add function to check if SAI is muted
2024-08-25 13:59:27 +00:00
Ulf Lilleengen
1cfd5370ac
Merge pull request #3281 from elagil/ulpi_add_fs_support
feat: Add support for a full-speed ULPI mode
2024-08-25 06:05:41 +00:00
Ulf Lilleengen
f4c7ec7462
Merge pull request #3284 from korken89/fix-can-log-spam
stm32: Fix log storm when no CAN is connected
2024-08-25 06:04:48 +00:00
Emil Fresk
41e162541a stm32: Fix log storm when no CAN is connected
Running the bxcan driver without having it connected
to a CAN bus causes the `info` logs to bombard.
This removes the logging statements as they looked
like remnants from the development of the driver.
2024-08-25 07:14:19 +02:00
elagil
557cff7085 feat: Add support for a full-speed ULPI mode 2024-08-24 20:23:10 +02:00
elagil
87e97fb69d feat: add function to check if SAI is muted 2024-08-24 20:16:00 +02:00
James Munns
545eb39819
Merge pull request #3279 from ionspin/fix-timer0-tick
Set up timer0 tick when initializing clocks
2024-08-24 10:21:29 +00:00
Ugljesa Jovanovic
8c1024b2a5
Set up timer0 tick when initializing clocks 2024-08-24 12:19:12 +02:00
dvdsk
5479647962
embassy-net: fix/clearify TcpReader docs. Expand docs on timeouts 2024-08-23 19:18:12 +02:00
dvdsk
acc26a076a
embassy-net/read document return value Ok(0) 2024-08-23 15:04:00 +02:00
Ulf Lilleengen
423e5d7655
Merge pull request #3275 from embassy-rs/use-bthci-release
use released bt-hci crate
2024-08-21 16:25:13 +00:00
Ulf Lilleengen
c9ad897d4a Use released bt-hci crate 2024-08-21 18:14:15 +02:00
Ulf Lilleengen
86a45b47e5 add at command file 2024-08-21 12:44:07 +02:00
Ulf Lilleengen
bc67cc22aa update driver channel dependency 2024-08-21 12:44:07 +02:00
Dario Nieuwenhuis
11652ff5c7 don't crash if tx buffers fill up. 2024-08-21 12:44:07 +02:00
Dario Nieuwenhuis
160e1c38ce Add embassy-net-nrf91. 2024-08-21 12:44:07 +02:00
Dario Nieuwenhuis
aff66b9695 nrf: add try_write to BufferedUarte. 2024-08-21 12:44:07 +02:00
Dario Nieuwenhuis
1c466b81e6
Merge pull request #3233 from nautd/uart_half_duplex_fix
Convert uart half_duplex to use user configurable IO
2024-08-19 20:20:20 +00:00
Karun
bbc06035c1 make half duplex fn private 2024-08-19 12:15:39 -04:00
Karun
fcf9b3239e remove duplication 2024-08-19 11:27:18 -04:00
Sjoerd Simons
1b0661ebb1 [UCPD] Add support for non-SOP packets
Allow capturing (and distinguishing) non-SOP packets as well. The
default configuration will just configure SOP packets. For ease of use
the default receive function signature is unchanged as for PD sinks
(which is likely the common usage) just SOP is enough so no need to
differentiate.
2024-08-18 21:19:16 +02:00
James Munns
d8459685fd
Update faq.adoc - "code doesn't work in release mode" (#3267)
Add debugging tips from chat
2024-08-18 10:58:07 +02:00
Dario Nieuwenhuis
e0da483ad5
Merge pull request #3270 from barafael/patch-1
Fix link to PriorityChannel
2024-08-18 08:46:56 +00:00
Dario Nieuwenhuis
ad72b40c21
Merge pull request #3268 from embassy-rs/update-metapac-32985
stm32: update metapac
2024-08-18 08:46:45 +00:00
Rafael Bachmann
a91de8d6b0
Fix link to PriorityChannel
Fix: #2899
2024-08-18 10:36:04 +02:00
Dario Nieuwenhuis
cd4e199065
Merge pull request #3269 from embassy-rs/rp-binary-info
rp: use the rp-binary-info crate for binary info.
2024-08-17 20:18:06 +00:00
Dario Nieuwenhuis
eab3a57263 rp: use the rp-binary-info crate for binary info. 2024-08-17 22:12:39 +02:00
Dario Nieuwenhuis
8884766450 stm32: update metapac 2024-08-17 21:57:40 +02:00
Dario Nieuwenhuis
e30a888823
Merge pull request #3263 from liarokapisv/stm32-dual-boot-init-fix
stm32: fix dma nvic issues on dual core lines
2024-08-17 16:40:45 +00:00
Dario Nieuwenhuis
1007528acb
Merge pull request #3266 from embassy-rs/disable-f1-test
Temporarily disable stm32f1 tests.
2024-08-17 16:18:11 +00:00
Dario Nieuwenhuis
4bef0fc953 disable uart ringbuffered test on f2. 2024-08-17 18:14:56 +02:00
Dario Nieuwenhuis
550f2cfca0 Temporarily disable stm32f1 tests. 2024-08-17 17:45:29 +02:00
Alexandros Liarokapis
2b7e76efe9 Fix dma nvic issues on dual core lines
This commit addresses #3256 by disabling dma NVIC interrupt enablement at startup.
Instead, per-channel NVIC interrupt enablement is now done with the rest of the dma channel configuration.
This ensures that each core will only handle the interrupts of the DMA channels that it uses.
2024-08-17 16:54:41 +03:00
rafael
20b1b15bda
add one more embassy in the wild example (#3262) 2024-08-17 12:37:42 +02:00
Ulf Lilleengen
3cd81e971f
Merge pull request #3264 from AnthonyGrondin/main
feat(mdns): Enable mdns support through smoltcp
2024-08-17 05:15:25 +00:00
Anthony Grondin
d6bf4c45d2
feat(mdns): Enable mdns support through smoltcp 2024-08-16 22:56:32 -04:00
Dario Nieuwenhuis
6d9ed4c080
Merge pull request #3261 from thejpster/update-rp-rs-copyright
Add rp-rs copyright notice
2024-08-16 15:54:16 +00:00