Caleb Jamison
0b8c4587c2
Fix rp2350b pins >31 on debug builds
2024-09-23 13:38:43 -04:00
Dario Nieuwenhuis
d12e98aaf4
Merge pull request #3338 from ionspin/add-rp2350-trng-support
...
RP2350 TRNG support
2024-09-17 22:17:23 +00:00
Dario Nieuwenhuis
e597c6b959
Merge pull request #3332 from CBJamo/rp2350_pio_pins
...
rp: rp2350 pio pin fixes
2024-09-17 22:15:37 +00:00
Ugljesa Jovanovic
2bc49763c6
TRNG support for 235x
2024-09-17 21:26:59 +02:00
Dario Nieuwenhuis
cc9e2a51da
Merge pull request #3345 from CBJamo/rp2350_clock_padiso
...
rp23: Disable pad isolation on clock in/out pins
2024-09-17 19:17:31 +00:00
Caleb Jamison
2855e65cc6
Disable pad isolation on clock in/out pins
2024-09-16 13:26:24 -04:00
Caleb Jamison
d1508cc49c
oops
2024-09-16 13:07:16 -04:00
Caleb Jamison
8b34c94ef3
Improve error message when pin groups are not allowed
2024-09-16 13:02:35 -04:00
Caleb Jamison
6e0c3e25fd
Only check ping groups that have count >0
2024-09-16 12:58:23 -04:00
Caleb Jamison
9cfde66446
Move pin isolation config to make_pio_pin
2024-09-16 12:47:34 -04:00
Caleb Jamison
48fd0550d1
Review fixes
...
Don't overflow on subtract
Replace giant match with for loop
dedupe register write
2024-09-16 12:41:12 -04:00
Sebastian Quilitz
313e76af04
rp: add constructor for tx-only blocking UART
2024-09-16 12:27:17 +02:00
Caleb Jamison
55c3da5a4f
Properly drop pins >30
2024-09-15 20:48:54 -04:00
Caleb Jamison
ed6cbc7a3a
Fix upper bound of case where pins should be <=31
2024-09-15 20:09:18 -04:00
Caleb Jamison
e359b24121
remove debug print
2024-09-12 11:50:36 -04:00
Caleb Jamison
823a82adb7
Fixup formatting to work with log
2024-09-12 11:43:15 -04:00
Caleb Jamison
eeda57a424
rp2350 pio pin fixes
...
Disable pad isolation on any used pin.
Use GPIOBASE and offset pin bases if all pins are > 16, panic if some
pins are < 16 and some are > 31
2024-09-12 11:37:17 -04:00
Caleb Jamison
3d6a270f30
rp: Fix indexing for pins >31 on rp235xb ( #3330 )
...
* Fix indexing for pins >31 on rp235xb
* fixup knowing that 1<<7 is 128 not 64
2024-09-12 01:44:11 +02:00
Caleb Jamison
e75903138a
Fix commented out code
2024-09-04 13:42:03 -04:00
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
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
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
Ugljesa Jovanovic
8c1024b2a5
Set up timer0 tick when initializing clocks
2024-08-24 12:19:12 +02:00
Dario Nieuwenhuis
eab3a57263
rp: use the rp-binary-info crate for binary info.
2024-08-17 22:12:39 +02:00
Dario Nieuwenhuis
16c3e5880f
Add license files to embassy-rp crediting rp-rs.
2024-08-16 17:51:52 +02:00
Jonathan 'theJPster' Pallant
ccf8ce7c7e
Note where some embassy-rs files come from.
...
In a similar fashion to other source files taken from rp-rs.
2024-08-16 17:48:22 +02:00
Caleb Jamison
0b58ef8f1b
Fix commented out code
2024-08-13 00:54:41 -04:00
Dario Nieuwenhuis
3e27ee1ecc
Actually fix embassy-rp docs build.
2024-08-12 14:38:52 +02:00
Caleb Jamison
13cb431472
Enable rp235x doc tests, fixup feature doc
...
The rp235x doc test requires an unfortunate workaround using a private
feature, "_test", in order compile.
2024-08-12 05:47:16 -04:00
Caleb Jamison
752fbc662a
Fix docs, ci
2024-08-12 05:06:59 -04:00
Caleb Jamison
778241fd71
Fix CI, rename private feature, address comments from dirbaio.
2024-08-12 04:32:31 -04:00
Dario Nieuwenhuis
9dc4375f18
rp: update PAC, fix CI.
2024-08-12 03:25:41 -04:00
Caleb Jamison
0d41566c24
Switch to embassy's rp-pac repo, also use a patch.
2024-08-10 17:39:33 -04:00
Caleb Jamison
9a863f07fe
Handle pad isolation everywhere and in the same way.
2024-08-10 17:36:28 -04:00
Caleb Jamison
ffdc60d6fb
Move #![cfg]s to lib.rs
2024-08-09 16:09:16 -04:00
Caleb Jamison
05cb1baf37
Fix ci/rustfmt
2024-08-09 15:54:30 -04:00
Caleb Jamison
e5d8d8b18e
Switch to single pac
2024-08-09 12:31:29 -04:00
Caleb Jamison
6a797deb72
Fixup pac dep sources
2024-08-08 22:07:43 -04:00
Caleb Jamison
6f03c40516
cargo fmt
2024-08-08 21:54:21 -04:00
Caleb Jamison
b185e02a42
Initial rp235x support
...
Examples have been run, but there is not yet a test suite.
2024-08-08 21:35:21 -04:00
Joris Kleiber
06872da5f8
Fix broken link to rp-pac and add link to critical-section in embassy-rp
2024-08-05 16:59:08 +02:00
Ulf Lilleengen
886580179f
update dates
2024-08-05 08:58:56 +02:00
Ulf Lilleengen
f605302791
Prepare to release embassy-rp
2024-08-05 08:56:29 +02:00
Ulf Lilleengen
37d7b0cd06
prepare release embassy-executor
2024-08-05 08:56:29 +02:00
Ulf Lilleengen
44282b18fa
Prepare embassy-time release
2024-08-05 08:56:29 +02:00
Ulf Lilleengen
fb0ab1e42a
Prepare release of embassy-hal-internal
2024-08-05 08:56:29 +02:00
Ulf Lilleengen
5767c003cc
Prepare release of embassy-embedded-hal 0.2.0
2024-08-05 08:56:29 +02:00
Rafael Bachmann
2a1ace29a3
Fix possible typo in embassy-rp README.md
...
There is no feature `time` in embassy-rp. Is it `time-driver`? Is it something else?
2024-08-03 15:32:39 +02:00
Ulf Lilleengen
f2c29ba9d8
Merge pull request #3174 from JomerDev/add-count-to-read_to_break
...
RP2040: Add read_to_break_with_count
2024-08-02 13:50:32 +00:00
Dario Nieuwenhuis
2d678d6956
Update to Rust 1.80, make check-cfg unconditional.
2024-07-25 15:53:00 +02:00