Commit graph

48 commits

Author SHA1 Message Date
Jonathan Pallant (42 Technology) 225eabb449 Use peripheral clock to describe the clock signal given to peripherals. 2021-09-27 18:42:36 +01:00
Jonathan Pallant (42 Technology) c531eb976e Say nothing about the default input clock frequency - it's given! 2021-09-27 18:37:59 +01:00
Jonathan Pallant (42 Technology) 29dd755b30 Ensure the bootloader static gets documented. 2021-09-27 17:30:50 +01:00
Jan Niehusmann 389e0ea715 fix pico_usb_twitchy_mouse with usbd-hid >= 0.5.1
usbd-hid 0.5.1 contained an accidental semver breaking change

fix example accordingly
2021-09-25 20:33:31 +10:00
MGlolenstine 87b29bf9f4 Fixed a formatting typo 2021-09-25 00:53:30 +10:00
9names b0c15ccc77
Update changelog and bump verson for hal release 0.3.0 (#121)
* Update CHANGELOG.md and Cargo.toml for release 0.3.0

* Bump BSP hal dep version
2021-09-22 20:43:30 +10:00
Jonathan Pallant (42 Technology) cbff22b911 Fix the pico lipo example. 2021-09-21 16:38:03 +01:00
Jonathan Pallant (42 Technology) 1e6d14abb0 Correct typo. 2021-09-21 16:18:19 +01:00
Jonathan Pallant (42 Technology) 43a22e6e42 Add Feather RP2040 README 2021-09-21 16:17:51 +01:00
Jonathan Pallant (42 Technology) 34687a2ebe Add Adafruit Macropad README 2021-09-21 16:17:35 +01:00
Jonathan Pallant (42 Technology) efe32e627f Add Pico Explorer README 2021-09-21 16:17:24 +01:00
Jonathan Pallant (42 Technology) bc68ee32fb Add Pimoroni Pico Lipo README and example. 2021-09-21 16:17:14 +01:00
Jonathan Pallant (42 Technology) f0fc4ed3ad Typo in comments. 2021-09-21 12:43:16 +01:00
Jonathan Pallant (42 Technology) 25d87b838b Good ol' clippy. 2021-09-21 12:42:34 +01:00
Jonathan Pallant (42 Technology) b89e728e9c Polishing the USB interrupt examples.
Answers on a postcard please on how to avoid `static mut` when you have
lazy initialization, and static objects holding references to other
static objects.
2021-09-21 12:37:44 +01:00
Jonathan Pallant (42 Technology) ba6c409f21 Update non-IRQ USB example. 2021-09-21 10:54:13 +01:00
Jonathan Pallant (42 Technology) 35f001f61d Polishing the PWM and USB examples. 2021-09-21 10:47:43 +01:00
Jonathan Pallant (42 Technology) 3e036cf9b0 Polishing the blinky examples. 2021-09-21 10:03:47 +01:00
Jonathan 'theJPster' Pallant dc42c714e1
Merge pull request #126 from 42-technology-ltd/update_pico_docs
Update Pico BSP docs
2021-09-21 09:28:28 +01:00
Jonathan Pallant (42 Technology) 8d4407d846 Mouse twitches the other way.
You'd think I'd know the difference between the X-axis and the Y-axis
by now.
2021-09-21 09:23:58 +01:00
Jonathan Pallant 410d951429 Add more example details. 2021-09-20 14:50:02 +01:00
Jonathan Pallant 0525b3deaf Examples do need to include the board name.
This is because we build in a workspace and they all share a target folder.
2021-09-20 14:39:44 +01:00
Jonathan Pallant da89317219 WIP README for Pico 2021-09-20 14:38:48 +01:00
Jonathan Pallant c992fc9967 Add README to Pro Micro RP2040 BSP.
Also add BSP to top-level README, and some extra comments in the
example.
2021-09-20 14:33:46 +01:00
Wilfried Chauveau 1d5dd15092 Work around enumeration issues with small ep0 max packet size.
Prevents DataIn of the previous request from being sent to the host when
a new setup is received.
2021-09-19 22:27:17 +10:00
Wilfried Chauveau 63dd0b3066 add Pro Micro rainbow example (uses PIO & Timer's Countdown) 2021-09-17 21:17:42 +10:00
9names 98b8e3ae9c
Handle usb interrupt flags in driver (#106)
Set interrupt enable flags in USB driver. The flags were already being cleared in the USB driver.
Update USB examples to remove interrupt flag set/check as it is no longer necessary.
2021-09-17 09:40:10 +10:00
Wilfried Chauveau c509b9d22f
Add embedded_hal::timer support (#110)
* Add embedded_hal::timer support

* fixup: add pico countdown based blinky example & rework get_counter(&self) -> u16
2021-09-16 18:47:34 +10:00
Jonathan Nilsson 8a42d6cf8a
Update pac so we can use rt 0.7 (#107)
* Update pac so we can use rt 0.7

* Update pac in all board crates
2021-09-15 15:07:25 +10:00
Cam Buss cb8dbbf917
Add Pico RTIC Timer Blinky Example (#109)
* Add RTIC Timer Blinky Example
2021-09-14 23:59:55 +10:00
9names 8b1c9fc3e5 Add port of usb-twitchy-mouse 2021-09-11 18:36:44 +10:00
9names 0cc4614888 Add interrupt-driven USB example 2021-09-11 18:36:19 +10:00
Wilfried Chauveau db11231f49
Implement usb_device for rp2040 (#98)
Implement usb_device for rp2040

Limitations
- RP2040-E5 (Device enumeration workaround) is not implemented
- Suspend/resume is not implemented
- VBus detection is not tested and may not be fully implemented
2021-09-09 17:55:30 +10:00
Hmvp ffa39f65f5
Pwm improvements (#61)
* Reimplement PWM driver using typestates
* Improve docs
2021-09-02 09:37:17 +10:00
Hmvp 216aad2c76 Update and move readmes
The READMEs that go to crates.io need to be in the crate dir
2021-08-26 00:18:55 +10:00
Michael Zill 199ad891ed
Adafruit feather rp2040 (#91)
* added example for Feather RP2040
2021-08-21 21:22:18 +10:00
9names 6d913f1231
Pin pico_explorer to older boot2
We updated the behavior of boot2 so that there is now no default bootloader.
Pico_explorer_showcase was the only BSP still using git:main, pin
it to the last git commit before https://github.com/rp-rs/rp2040-boot2-rs/pull/7
2021-08-20 11:37:16 +10:00
Hmvp d4ec87b2f7 Prepare for first release 2021-08-14 20:03:02 +10:00
Hmvp ae8fe512bd Pico explorer board support 2021-07-27 19:37:29 +10:00
Hmvp bcfbd72ed1 Update embedded time 2021-07-27 09:41:03 +10:00
Hmvp ffa97842e2
Improve clock frequency stuff for uninitialized clocks and add some examples (#64)
* Improve clock frequency stuff for uninitialized clocks

- Made clocks singletons so the frequency handling actually works as expected
- Added initial frequencies
- Improved the docs
- Added a Clock trait

* Add pico examples.

These have the benefit of knowing which external crystal is attached.
Even though it always should be a 12 MHz crystal.
Thus we can setup the clocks properly

I also changed the rp2040 examples to work out of the box for pico boards since that will probably be used most of the time
2021-07-26 20:24:58 +10:00
Andrea Nall 25cf81fdfe Add Adafruit Macropad BSP 2021-07-26 10:04:36 +10:00
Andrea Nall 17f8a5ab99
Add 'rt' feature (#53)
For the HAL, currently just passes the feature to the PAC.

Also pass the 'rt' feature through to the HAL for all the BSP crates.
2021-07-07 19:33:36 +10:00
Hmvp c4f30a8ba6 Add bsp for Pico and Pimoroni Pico LiPo 2021-07-07 00:17:57 +10:00
Hmvp 0d4b0e5645 Add Pico Explorer board support 2021-07-07 00:17:57 +10:00
Andrea Nall e3be4f8025 Massive GPIO refactor
Bring in line with atsamd-hal GPIO v2

Copied as much as possible. Docs lifted mostly as-is.

Also add sample BSP for the Feather RP2040 in boards/feather_rp2040

May include a few random fixes from currently futile attempt to get doctests working.
2021-07-03 10:32:43 +10:00
evan 98baabec93 Added skeleton for HAL and updated readme 2021-01-25 15:42:43 -05:00
evan 22a3669a9d Initial Commit: Updated author information. 2021-01-22 09:18:12 -05:00