Commit graph

218 commits

Author SHA1 Message Date
Alex Janka 426a71ff54 memcpy 2023-05-24 16:41:03 +10:00
Jan Niehusmann 9d07b91b5c sdmmc: rename Controller -> VolumeManager 2023-05-22 19:59:30 +00:00
Jan Niehusmann c452b530c9 Use released version 0.5.0 of embedded-sdmmc 2023-05-22 19:11:00 +00:00
Nathan Marley 8b7c67ee47 Remove redundant variable in pico uart examples
This removes the hard-coded XTAL_FREQ_HZ variable from the rp-pico UART
examples as it's already defined in this library as XOSC_CRYSTAL_FREQ.

I noticed this as I was looking thru the examples and it seems like most of
them use the rp_pico::XOSC_CRYSTAL_FREQ value instead. I'm new to embedded so
please let me know if I got something wrong here. Thanks!
2023-05-01 11:33:34 -03:00
Jan Niehusmann 2f8d0f4404
Merge pull request #14 from rp-rs/fix-dir-name 2023-03-19 09:49:32 +01:00
Jan Niehusmann ca037a3256 Fix typo in rp-pico/Cargo.toml 2023-02-19 10:34:21 +00:00
Jan Niehusmann 0846d2ecca Rename directory of pimoroni_badger2040 crate
The directory name should match the crate name.
2023-02-18 14:09:11 +00:00
Jan Niehusmann 462bffac04 Update versions, readmes and changelogs of board crates 2023-02-18 12:10:23 +00:00
Jan Niehusmann 52e248fa5d Update dependency to latest release of embedded-sdmmc
This avoids a git dependency
2023-02-18 11:14:06 +00:00
Jan Niehusmann 2fbf4c6ab1
Merge pull request #10 from tomgilligan/bump-rp2040-hal
Bump rp2040-hal to v0.8 across the boards
2023-02-18 12:13:06 +01:00
Jan Niehusmann f3474ad388 Upgrade dependencies on ws2812-pio, i2c-pio to match rp2040-hal dependency 2023-02-18 10:31:10 +00:00
Wilfried Chauveau 456d650909
doc: Update readmes to use the new repo's name 2023-02-16 07:12:57 +00:00
Thomas Gilligan a03305b57f Bump rp2040-hal to v0.8 across the boards 2023-02-15 14:54:32 +11:00
Jan Niehusmann e6b98c22f5 Mark examples as ignore, as no_std code doesn't work in doctests 2023-02-10 09:09:09 +00:00
Jan Niehusmann 0767f9b214 Make cargo fmt happy (remove trailing whitespaces) 2023-02-10 08:53:17 +00:00
OrganomagnesiumHalide 7a65556bc7 Added documentation to #[entry] and to the readme
While the project does have examples, even a simple example such as
blinky doesn't really cover how to get started if you don't want to use
a template.
2023-02-09 17:07:10 -08:00
Jan Niehusmann 672989b941 Use correct version number for rp2040-hal in changelog files 2022-12-11 21:41:40 +00:00
Jan Niehusmann cec511699c Update CHANGELOGs of BSP crates 2022-12-11 14:03:35 +00:00
Jan Niehusmann fd99957e2f Bump versions of BSP crates 2022-12-11 10:51:30 +00:00
Jan Niehusmann 160d0921ab Update dependencies
rp2040-hal = "0.7.0"
ws2812-pio = "0.5.0"
i2c-pio = "0.5.0"

The versions of the individual BSP crates are not yet updated.
2022-12-11 10:45:45 +00:00
Jan Niehusmann 4edb185ce0 Fix repository links in Cargo.toml of board crates 2022-12-11 10:33:01 +00:00
Jan Niehusmann 8c202ca325 Fix links to board crates 2022-12-11 09:57:50 +00:00
Jan Niehusmann 89d4083dca Move board crates to separate repository rp-hal-boards 2022-12-10 13:06:23 +00:00
René van Dorst d7177345af
Add board waveshare-rp2040-lcd-0.96 (#513)
* Add board waveshare-rp2040-lcd-0.96

* Update product page links in readme
2022-12-10 13:10:08 +11:00
Jan Niehusmann 1c6a816182 Use generic boot loader for arduino nano connect
Fixes #503
2022-11-28 11:31:12 +00:00
Jan Niehusmann 0055dbaf87
Fix some clippy warnings flagged by current beta (#505)
* Fix some clippy warnings flagged by current beta

(One warning was just silenced because I consider the current code more readable)

* cargo fmt
2022-11-25 17:08:20 +00:00
Jan Niehusmann d1377acc19
Update dependencies on defmt-rtt to 0.4.0 (#504)
Version 0.3.0 depends on deprecated critical-section 0.2
2022-11-25 09:05:04 +00:00
TilCreator c5309f6a86
Add board waveshare-rp2040-zero (#500) 2022-11-17 08:53:00 +11:00
Jan Niehusmann 4c6600e036 Extend pico_usb_serial example with some string formatting 2022-10-30 17:24:08 +00:00
Thiébaud Weksteen 578657a829 Bump rp-pico version in README.md 2022-10-21 15:11:14 +11:00
Jan Niehusmann b81ad6f599 Use UartConfig::new constructor instead of common_configs in examples 2022-10-15 17:14:43 +00: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 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
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 fa83510277 Provide rp2040_hal::gpio::pin::Pin::into_push_pull_output_in_state 2022-09-17 13:31:11 +00:00
Paul Daniel Faria 19e2fbea1c
Add the Pimoroni Servo 2040 board (#450)
* Add the Pimoroni Servo 2040 board

This PR adds the board support package and two simple examples.
* Animates a rainbow wheel across the RGB LEDs on the board.
* Moves a servo that's connected to GPIO0 back and forth.

* Format pimoroni-servo2040 board files

* Use us_to_duty function in servo example, clean up comments.

* Fix bad types

* Add Servo2040 description to top-level readme
2022-09-17 12:04:16 +01:00
Wilfried Chauveau 4ddad4e74c
fix concurrent accesses to sm_execctrl and sm_instr when sideset isn't optional (#448)
* fix concurrent accesses to sm_execctrl and sm_instr when sideset isn't optional
* review & document unsafe blocks
2022-09-16 17:19:54 +01:00
Jan Niehusmann e681b67d9c
Merge pull request #444 from jannic/critical-section-default
Enable critical-section-impl by default only from board crates, not from hal
2022-09-02 12:12:45 +02:00
Wilfried Chauveau 5ce10ff94e
timer: Use a fixed type in Alarm::schedule (#442) 2022-08-31 21:45:08 +01:00
Wilfried Chauveau 4dbd5667a6
Use TimerInstant in Timer::GetCounter & add Alarm::schedule_at (#439) 2022-08-31 06:54:57 +01:00
Wilfried Chauveau 4ead633042
Revert "Make Pimoroni Badger 2040's crate name consistent with it's directory (#435)" (#437)
This reverts commit 1de8f9016d.
2022-08-26 12:15:17 +01:00
Wilfried Chauveau 1de8f9016d
Make Pimoroni Badger 2040's crate name consistent with it's directory (#435) 2022-08-26 10:49:43 +01:00
Wilfried Chauveau 8d52f37dd1
Prepare for HAL 0.6.0 release (#430)
* Prep for HAL 0.6.0 release

* Update changelog, readme and version number for HAL 0.5.0 release
* Bump HAL version in BSP deps
* Add the missing boards to the main README.md
2022-08-26 10:05:56 +01:00
Wilfried Chauveau 13cad64c29
remove unused dependencies & add GHA flow (#429) 2022-08-26 03:42:33 +01:00
Wilfried Chauveau 3261eccd4d
Fix interpolator example post migration to fugit (#434) 2022-08-26 02:32:24 +01:00
Kasil 31469c232f
Add support for the Interpolator (#371)
* Implementation of the interpolator.
* corrected formatting
* fixed documentation code
* add clamp flag to LaneCtrl
* addition of an example for the interpolator
* put documentation behind ///
* rewording comment for clarity
* using more idiomatic fn new
2022-08-25 18:02:56 +01:00
Wilfried Chauveau bf66ae9a58 Bump -pio dependencies 2022-08-24 22:46:34 +01:00