Georges PALAUQUI
d223ea6ca6
update ST7789 spi_display to new mipidsi/display-interface-spi
2023-07-16 17:15:22 +02:00
Georges PALAUQUI
66c2d8ed9f
cleanup
2023-07-16 15:57:26 +02:00
Georges PALAUQUI
919a0071ec
add spi_display with mipidsi example for rp pico
2023-07-16 15:15:19 +02:00
maximedeboeck
88d1976e81
Added usb-hid keyboard example for rp pico.
2023-07-16 12:31:56 +02:00
Henrik Berg
56ca179475
Round temp to make more sense.
2023-07-13 22:47:03 +02:00
Henrik Berg
588c0479f5
Add descriptions to all RP2040 examples. Some need hardware that was not specified.
2023-07-13 11:16:11 +02:00
Henrik Berg
6d402fe393
RP: Don't reset RTC in Clock::init. Updated example.
2023-07-12 15:16:56 +02:00
Henrik Berg
466a391b52
RP: Add save/restore to Rtc. Example use.
2023-07-12 14:22:48 +02:00
Henrik Berg
a93714327e
RP: Rename Rtc to match STM32 impl. Remove setting RTC in new().
2023-07-12 14:22:48 +02:00
Henrik Berg
55a5e9b3a5
RP: Add RTC example to rp2040.
2023-07-12 14:22:48 +02:00
Dario Nieuwenhuis
b0da6318f3
Merge pull request #1623 from pennae/rp-adc
...
rp/adc: rewrite the module
2023-07-07 15:52:48 +00:00
pennae
972cdd4265
rp/adc: rewrite the module
...
- don't require an irq binding for blocking-only adc
- abstract adc pins into an AnyPin like interface, erasing the actual
peripheral type at runtime.
- add pull-up/pull-down functions for adc pins
- add a test (mostly a copy of the example, to be honest)
- configure adc pads according to datasheet
- report conversion errors (although they seem exceedingly rare?)
- drop embedded-hal interfaces. embedded-hal channels can do neither
AnyPin nor pullup/pulldown without encoding both into the type
2023-07-07 17:46:35 +02:00
pennae
4b63829110
rp/pio: use bind_interrupts for irqs
...
closes #1338
2023-07-07 16:27:10 +02:00
Dario Nieuwenhuis
d137286981
Release embassy-time v0.1.2
2023-07-06 01:29:44 +02:00
Dario Nieuwenhuis
a42ac86f1b
Remove wifi envvars. They're annoying, they cause rust-analyzer errors when opening the examples.
2023-07-05 19:20:49 +02:00
Dario Nieuwenhuis
a101d9078d
update embedded-hal crates.
2023-07-04 19:59:36 +02:00
Dario Nieuwenhuis
f7ec579c18
Update probe-rs-cli -> probe-rs
2023-06-29 02:39:28 +02:00
Henrik Berg
35db5cf416
Spelling.
2023-06-12 20:19:33 +02:00
Henrik Berg
23724b6bf6
Code cleanup.
2023-06-12 20:19:33 +02:00
Henrik Berg
6863786243
Document external button. Add wifi_blinky.rs for easy beginners start.
2023-06-12 20:19:33 +02:00
Dario Nieuwenhuis
6653f262d7
examples: use nicer InterrupExt to set irq priority in multprio.
2023-06-09 16:46:57 +02:00
Dario Nieuwenhuis
98c821ac39
Remove embassy-cortex-m crate, move stuff to embassy-hal-common.
2023-06-09 16:44:20 +02:00
Dario Nieuwenhuis
dc8e34420f
Remove executor dep+reexports from HALs.
...
Closes #1547
2023-06-09 16:29:45 +02:00
Ruben De Smet
352f0b6c38
net: Support dual stack IP
2023-06-07 13:18:19 +02:00
Ruben De Smet
e871324bde
net: StaticV4 config behind proto-ipv4
2023-06-06 17:58:45 +02:00
Ruben De Smet
54bab33c73
Rename StaticConfig to StaticConfigV4
2023-06-06 17:04:21 +02:00
Dario Nieuwenhuis
1d8321b821
Use make_static! from static-cell v1.1
2023-06-01 01:42:34 +02:00
Dario Nieuwenhuis
d70994e4a8
net-w5500: integrate into main repo.
2023-05-31 01:01:30 +02:00
Dario Nieuwenhuis
82d765689a
Merge remote-tracking branch 'w5500/main' into w5500
2023-05-31 00:55:16 +02:00
Dario Nieuwenhuis
7f0e778145
move embassy-net-w5500 to subdir.
2023-05-31 00:54:20 +02:00
Dario Nieuwenhuis
3f35a8876e
cyw43: adapt build to main embassy repo.
2023-05-30 23:26:29 +02:00
Caleb Jamison
1ebb742fbf
Switch to DMA, use new clocks, don't take ownership of pio common
2023-05-19 16:48:47 -04:00
Caleb Jamison
1be6e53316
Pin fix, improve fifo handling
2023-05-19 15:06:36 -04:00
pennae
f97b591831
rp/clocks: don't expose unstable pac items
...
exposing pac items kind of undermines the unstable-pac feature. directly
exposing register structure is also pretty inconvenient since the clock
switching code takes care of the src/aux difference in behavior, so a
user needn't really be forced to write down decomposed register values.
2023-05-17 21:36:19 +02:00
kalkyl
ab63f3832f
rp: Read flash unique id and jedec id
2023-05-16 11:21:17 +02:00
bors[bot]
1a87f7477a
Merge #1458
...
1458: rp: remove take!, add bind_interrupts! r=Dirbaio a=pennae
both of the uart interrupts now check a flag that only the dma rx path ever sets (and now unsets again on drop) to return early if it's not as they expect. this is ... not our preferred solution, but if bind_interrupts *must* allow mutiple handlers to be specified then this is the only way we can think of that doesn't break uarts.
Co-authored-by: pennae <github@quasiparticle.net>
2023-05-15 15:59:30 +00:00
pennae
14a5d03af2
rp: remove take!, add bind_interrupts!
2023-05-15 15:24:56 +02:00
Dario Nieuwenhuis
26d7610554
net: do not use smoltcp Instant/Duration in public API.
2023-05-15 00:53:30 +02:00
Dario Nieuwenhuis
2fcdfc4876
rp: don't use SetConfig trait in PWM and PIO.
...
It was intended to allow changing baudrate on shared spi/i2c. There's no
advantage in using it for PWM or PIO, and makes it less usable because you have to
have `embassy-embedded-hal` as a dep to use it.
2023-05-13 02:13:26 +02:00
Caleb Jamison
9d971e5b15
Merge branch 'master' into master
2023-05-09 17:55:27 -04:00
Caleb Jamison
5cfe1a1fb4
Dirbaio comments round 2
2023-05-09 17:45:24 -04:00
Caleb Jamison
6bea078487
Remove patches, bump rp-pac version
2023-05-09 12:20:23 -04:00
Caleb Jamison
5015c845c5
Improve gpout example, clk_gpout_freq
2023-05-09 12:10:24 -04:00
Dirk Stolle
0584312ef0
Fix some typos
2023-05-08 23:25:01 +02:00
bors[bot]
d0703f83db
Merge #1435
...
1435: Added example for multi priority executors rp2040 r=Dirbaio a=fakusb
I added an example for multiple priorities of tasks on rp2040 by adjusting [examples/nrf52840/src/bin/multiprio.rs](https://github.com/embassy-rs/embassy/blob/master/examples/nrf52840/src/bin/multiprio.rs ) .
This needs https://github.com/embassy-rs/rp-pac/pull/2 , and this commit also adds the 6 new interrupt handlers for software interrupts to embassy-rs.
We might need to change the git path for rp-pac in [embassy-rp/Cargo.toml](https://github.com/embassy-rs/embassy/compare/master...fakusb:rp2040-multiprio-executor?expand=1#diff-47463ea358745927ecdb686f52feab816fde5d402a9628a136c116f34a802ab0 )
Closes #1413
Co-authored-by: Fabian Kunze <fkunze@fkunze.de>
2023-05-08 16:59:07 +00:00
Caleb Jamison
59132514cf
Add missing functions, Cleanup, Gpout example
2023-05-08 09:45:54 -04:00
Fabian Kunze
87795cbca8
added example multi priority executors rp2040
2023-05-07 01:00:13 +02:00
pennae
b38d496d51
rp/pio: allow wrap-around program loading
...
execution wraps around after the end of instruction memory and wrapping
works with this, so we may as well allow program loading across this
boundary. could be useful for reusing chunks of instruction memory.
2023-05-06 21:08:20 +02:00
pennae
8e4d65e163
rp/pio: configure state machines with Config struct
...
the many individual sets aren't very efficient, and almost no checks
were done to ensure that the configuration written to the hardware was
actually valid. this adresses both of these.
2023-05-06 17:23:41 +02:00
pennae
37b460637d
rp/pio: add set-pin-{values,dirs} convenience functions
...
these are needed a lot during state machine setup, it makes sense to
provide convenience functions for them.
2023-05-06 11:52:25 +02:00