Jan Niehusmann
e921ce06b4
Merge pull request #490 from jannic/pico_usb_serial_fmt_string
...
Extend pico_usb_serial example with some string formatting
2022-11-02 00:12:02 +01:00
Jan Niehusmann
4c6600e036
Extend pico_usb_serial example with some string formatting
2022-10-30 17:24:08 +00:00
Jan Niehusmann
5ae1f90939
Merge pull request #488 from ptpaterson/eh1_0_alpha-spi
...
implement embedded-hal aplha SPI traits
2022-10-30 13:47:11 +01:00
9names
9bc48de974
Merge pull request #486 from 9names/error_add_debug_traits
...
Add derive(Debug) and derive(defmt::Format) to error types.
pll and xosc Error types didn't implement Debug, which made them annoying to work with.
And only a few of our Error types implemented derive(defmt::Format).
I added both to all the errors I could find to make things a little more consistent.
2022-10-29 08:31:02 +11:00
Jan Niehusmann
f2d9fff0e2
Specify required feature critical-section-impl for some examples ( #487 )
2022-10-28 22:15:32 +01:00
Paul Paterson
98daa7a25d
implement embedded-hal aplha SPI traits
2022-10-28 13:21:55 -04:00
Jan Niehusmann
e60a979eda
Merge pull request #483 from zachs18/patch-1
...
Remove unnecessary `mut` from `static mut LOCK_OWNER: AtomicU8` in critical section impl.
2022-10-28 18:27:24 +02:00
Jan Niehusmann
4ca2dcfd20
Update rp2040-hal/CHANGELOG.md
...
Co-authored-by: 9names <60134748+9names@users.noreply.github.com>
2022-10-28 18:26:13 +02:00
9names
219d393085
Add derive(Debug) and derive(defmt::Format) to error types
2022-10-27 19:17:03 +11:00
David Cole
3c06a3359e
do not include offset when checking wrap bounds
2022-10-27 12:57:35 +13:00
David Cole
1ba07b09e7
Add ability to modify installed program wrap bounds
...
The wrap source and target cannot change after installing the program
into the PIO at present, even though this is possible with the C/C++
HAL. This is useful when using the same program across multiple state
machines that have different wrap sources and targets.
2022-10-26 21:03:58 +13:00
Jan Niehusmann
8e79f438ba
Merge pull request #467 from jannic/fix-466
...
Use InstalledProgram::share() in examples/pio_synchronized.rs
2022-10-25 23:34:36 +02:00
zachs18
2b8dda74aa
Remove unnecessary mut
from static mut LOCK_OWNER: AtomicU8
in critical section impl.
...
`LOCK_OWNER` is only accessed using the atomic APIs, which take `&self`, so it does not need to be `static mut`, `static` is fine.
(I haven't seen any miscompilations of this, but I'm unsure if Rust is allowed to assume `static mut`s are not aliased and apply optimizations based on that. If so, this would prevent that.)
2022-10-25 13:16:03 -05:00
Jan Niehusmann
3a0b33cfc8
Merge pull request #479 from tweksteen/bump_version_doc
...
Bump rp-pico version in README.md
2022-10-24 22:38:37 +02:00
Thiébaud Weksteen
578657a829
Bump rp-pico version in README.md
2022-10-21 15:11:14 +11:00
Jan Niehusmann
2fb3e2a7e9
Merge pull request #474 from jannic/update-pac
...
Update dependency on rp2040-pac to 0.4.0
2022-10-19 09:51:36 +02:00
Jan Niehusmann
018965d015
Update dependency on rp2040-pac to 0.4.0
2022-10-18 20:11:24 +00:00
Jan Niehusmann
95598ad199
Update CHANGELOG
2022-10-18 20:06:19 +00:00
Jan Niehusmann
2b941db745
Merge pull request #472 from Sizurka/uart-rx-discard
...
Fix UART read error discard data
2022-10-17 08:56:57 +02:00
Derek Hageman
04e245813a
Add CHANGELOG entry for UART error field
...
Add a changelog entry documenting the change to the UART error field
name.
2022-10-16 20:22:17 -06:00
Derek Hageman
c461d21136
Fix UART read error discard data
...
Limit the discarded data reference to the data that has actually been
read so far, instead of the whole input buffer. Also fix a spelling
error in the field name.
2022-10-16 10:59:26 -06:00
Jan Niehusmann
de673fb192
Merge pull request #471 from jannic/uart-config-constructor
...
Implement UartConfig::new constructor method
2022-10-15 22:32:27 +02:00
Jan Niehusmann
d8a0c64618
Make UartConfig::new(...) const
2022-10-15 17:34:13 +00:00
Jan Niehusmann
e9428c3f57
Add CHANGELOG entries
2022-10-15 17:14:43 +00:00
Jan Niehusmann
fb7fba03ad
Add deprecation attribute to common_configs
2022-10-15 17:14:43 +00:00
Jan Niehusmann
b81ad6f599
Use UartConfig::new constructor instead of common_configs in examples
2022-10-15 17:14:43 +00:00
Jan Niehusmann
0a86dad34c
Implement UartConfig::new constructor method
2022-10-15 17:02:30 +00:00
Jan Niehusmann
71c39a4431
Merge pull request #468 from jannic/fix-465
...
Check watchdog load value max value before multiplying by 2, to avoid integer overflow
2022-10-13 10:48:35 +02:00
Jan Niehusmann
84b92edd30
Check watchdog load value max value before multiplying by 2, to avoid integer overflow
2022-10-12 22:39:57 +00:00
Jan Niehusmann
e9923cbcd2
Use InstalledProgram::share() in examples/pio_synchronized.rs
2022-10-11 21:04:04 +00:00
Derek Hageman
39190c357f
Fix watchdog counter load ( #464 )
...
Fix the watchdog load to reflect the 1us tick rate. This was changed
in #361 , which presumably used the field name (delay_ms) and assumed
it was in milliseconds. So this also fixes the name to reflect that
it's microseconds.
2022-10-10 12:15:24 +01:00
Wilfried Chauveau
eac51cdd16
remove unused future dependency ( #463 )
2022-10-06 21:39:48 +01:00
Wilfried Chauveau
305dfc9d1f
Add rtic-monotonic support for timer & alarms (feature gated) ( #459 )
...
* Add rtic-monotonic support for timer & alarms
* Force Alarm interrupt if timer is set too soon
* timer: Remove non_exhaustive attribute from ScheduleAlarmError
* timer: TooSoon is no longer emitted so it can be removed
2022-10-06 18:31:31 +01:00
9names
82800fe370
Merge pull request #462 from 9names/bsp_enable_cache
...
Document HAL features in Config.toml(s), and enable ROM function caching in BSPs
2022-10-03 23:42:41 +11:00
9names
2d31d91ba1
Add rom-func-cache as a default feature in BSPs
2022-10-03 19:52:10 +11:00
9names
0cd990c3c1
Comment and pass-through HAL features in BSPs
2022-10-03 12:04:58 +11:00
9names
fc110f07c3
Add comments for HAL features
2022-10-03 11:43:09 +11:00
Jan Niehusmann
6a040a8042
Merge pull request #461 from jannic/upgrade-eh-alpha
...
Upgrade eh alpha
2022-09-30 21:41:36 +02:00
Jan Niehusmann
d5bfb0ca8d
Fix typo in changelog
2022-09-30 16:53:37 +00:00
Jan Niehusmann
819f051cc2
Update changelog
2022-09-28 21:59:09 +00:00
Jan Niehusmann
fcd6f7c19d
Remove unnecessary custom Infallible types
2022-09-28 21:59:09 +00:00
Jan Niehusmann
e4deaabb51
Upgraded embedded-hal alpha dependency to 1.0.0-alpha.9
...
For now, disabled non-blocking implementations.
2022-09-28 21:59:09 +00:00
Jan Niehusmann
8d9b4538c9
Merge pull request #453 from jannic/update-jmp-offset
...
simplify jump offset calculation when loading PIO programs
2022-09-27 22:25:22 +02:00
Paul Daniel Faria
4f440d286d
Update Servo 2040 board examples in README
...
Add the PWM Servo example to the readme.
Fix typo in rainbow animation.
Add images to boath examples showing working examples.
2022-09-21 18:00:37 +10:00
Paul Daniel Faria
d3b0156269
Fix servo example in rp2040-servo, remove unusable aliases.
...
The servo example included phase correction, which does not work with the
provided divider. Updated comments to explain numbers and also explain
alternate calculation with phase correction enabled.
Remove unusable aliases from all servo pins. The board includes a 180 Ohm
resistor on all servo data pins, which makes the lines not very usable for
Spi, Uart or I2C. The aliases were removed given they will rarely, if ever,
be used with this board.
2022-09-21 18:00:37 +10:00
Jan Niehusmann
e7454087d1
Merge pull request #455 from papyDoctor/spi-isbusy
...
added SPI is_busy function
2022-09-20 23:27:30 +02:00
Olivier
69c047136c
added SPI is_busy function
2022-09-19 15:27:46 +02:00
Jan Niehusmann
6a5747b213
Use u8 instead of usize for pio address calculation
2022-09-18 10:48:09 +00:00
Jan Niehusmann
7cca9a71d7
simplify jump offset calculation when loading PIO programs
2022-09-17 17:22:34 +00:00
Jan Niehusmann
ae629ad4c9
Merge pull request #452 from jannic/into_mode_setting_output
...
Provide rp2040_hal::gpio::pin::Pin::into_push_pull_output_in_state
2022-09-17 18:02:43 +02:00