Commit graph

771 commits

Author SHA1 Message Date
Jan Niehusmann 53ee09ec70
Merge pull request #22 from nmarley/readme-probe-run-list
Update probe-run list-probes command in README
2023-05-06 22:26:57 +02:00
Jan Niehusmann 1218a69191
Merge pull request #21 from nmarley/rm-uart-ex-clock-freq
Remove redundant variable in pico uart examples
2023-05-06 22:19:01 +02:00
Nathan Marley d30469f1ed Update probe-run list-probes command in README
Hi, I noticed when I followed the [current instructions](2f8d0f4404/README.md?plain=1#L413) in the README to use probe-run, I got an error:

```sh
probe-run --chip RP2040 --list-probes
error: the argument '--chip <CHIP>' cannot be used with '--list-probes'

Usage: probe-run --chip <CHIP> <ELF>

For more information, try '--help'.
```

I'm on macOS Monterey 12.6.5 (21G531) and currently here's my version from probe-run:

```sh
probe-run --version
0.3.8
supported defmt version: 4
```

Once I removed the `--chip` argument I got this:

```sh
probe-run --list-probes
the following probes were found:
[0]: Picoprobe CMSIS-DAP (VID: 2e8a, PID: 000c, Serial: E6616408438E3C21, CmsisDap)
```

I am guessing this is the intended behaviour, and that the `--chip` and `--list-probes` arguments no longer work together.
2023-05-01 11:39:33 -03: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 8a172210e0
Merge pull request #15 from rp-rs/fix-typo 2023-02-26 09:17:59 +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 de389d1fca
Merge pull request #13 from rp-rs/hal-0.8
Update versions, readmes and changelogs of board crates
2023-02-18 13:40:14 +01:00
Jan Niehusmann 462bffac04 Update versions, readmes and changelogs of board crates 2023-02-18 12:10:23 +00:00
Jan Niehusmann b6ce0b17a7
Merge pull request #5 from rp-rs/update-sdmmc
Update dependency to latest release of embedded-sdmmc
2023-02-18 13:10:12 +01: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
Jan Niehusmann 726d5f777e
Merge pull request #12 from ithinuel/fix-readmes
doc: Update readmes to use the new repo's name
2023-02-18 11:10:39 +01: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 6c7e728031
Merge pull request #8 from OrganomagnesiumHalide/AddedDocumentation
Added documentation to #[entry] and to the readme
2023-02-10 10:19:27 +01: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 e24d9b9ee9
Merge pull request #3 from rp-rs/hal-0.7
Update to rp2040-hal 0.7.0 and prepare release of BSP crates
2022-12-11 23:05:33 +01: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 171335a534
Merge pull request #2 from rp-rs/fix-repo-link
Fix repository links in Cargo.toml of board crates
2022-12-11 11:43:44 +01:00
Jan Niehusmann 4edb185ce0 Fix repository links in Cargo.toml of board crates 2022-12-11 10:33:01 +00:00
Jan Niehusmann 7c928993e6 Fix another link to a board crate 2022-12-11 10:17:51 +00:00
Jan Niehusmann 44db867944
Merge pull request #1 from rp-rs/fix-links
Fix links to board crates
2022-12-11 11:07:29 +01:00
Jan Niehusmann 8c202ca325 Fix links to board crates 2022-12-11 09:57:50 +00:00
Jan Niehusmann 6db1f3f98a Update README 2022-12-10 13:52:58 +00:00
Jan Niehusmann 89d4083dca Move board crates to separate repository rp-hal-boards 2022-12-10 13:06:23 +00:00
Jan Niehusmann 06a6e18862
Merge pull request #514 from jannic/update-changelog
Update CHANGELOG.md
2022-12-10 12:26:34 +01: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 b80833ad62 Update CHANGELOG.md 2022-12-09 21:11:23 +00:00
Murat Ursavaş dfc790b207
Fixed: First frame is getting lost on a USB-CDC device. (#510)
**Issue**

While using `usb_device` and `usbd_serial` crates with `rp2040_hal`, the first frame from the host device is always getting lost. Consecutive frames work just fine.

**Root Cause**
The `LENGTH_0` region of the `EP_BUFFER_CONTROL` register is always reset (0) while waiting for the first frame. After the first frame failure, the poll operation implicitly sets it  to the necessary value (`max_packet_size`) and this clears the problem for the rest of the app execution life time.

The main problem is while resetting and readjustment of the bits needs a step by step operation to avoid potential issues. While doing that and setting `AVAILABLE` bit, the wrong method had been chosen and was invalidating previous changes. Hence the `LENGTH_0` param is reset, too.

**Proposed Solution**
Instead of direct register `write` operation I've used `modify` to keep current bits in the register.

Co-authored-by: Murat Ursavas <mursavas@nebra.com>
2022-12-04 10:19:06 +11:00
Jan Niehusmann 2a5b0ce01e
Merge pull request #506 from jannic/issue-503
Use generic boot loader for arduino nano connect
2022-11-28 19:11:22 +01:00
Wilfried Chauveau 34124363eb
use i2c-pio's main branch (#491) 2022-11-28 18:09:34 +00:00
Wilfried Chauveau 119534d2da
usb: Read ints rather than sie_status in poll (#493)
If the latency is too high, there is a risk that the status reverts to a
previous state while keeping the interrupt flag up.
This fixes that by relying on ints instead of sie_status to process the
events.
2022-11-28 18:08:23 +00: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
Jan Niehusmann 6fca82f810
Merge pull request #502 from jannic/remove-critical-section-0.2
Remove support for deprecated version 0.2 of critical-section
2022-11-23 11:05:25 +01:00
Jan Niehusmann e3a6612366 Remove support for deprecated version 0.2 of critical-section 2022-11-22 19:38:59 +00:00
Jan Niehusmann 4b2b33b950
Merge pull request #494 from jannic/pio-change-clkdiv
Allow setting clock divisors on running state machines
2022-11-17 09:35:39 +01:00
TilCreator c5309f6a86
Add board waveshare-rp2040-zero (#500) 2022-11-17 08:53:00 +11:00
Jan Niehusmann f00ea66ccd
Merge pull request #497 from jannic/dead-code-RpSpinlockCs
Avoid dead_code warning if critical-section-impl is not enabled
2022-11-13 11:12:25 +01:00
Jan Niehusmann 40f3f42c70
Merge pull request #496 from icedrocket/main
build: add docs.rs metadata
2022-11-12 18:09:23 +01:00
Jan Niehusmann c1988432c8 Avoid dead_code warning if critical-section-impl is not enabled
Also make Spinlock31 public if it's not used by the critical section impl
2022-11-12 14:17:45 +00:00