Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add support for rp2350 #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ smoke-test:
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/tufty
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/tufty
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b

test: clean fmt-check smoke-test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build](https://github.com/tinygo-org/pio/actions/workflows/build.yml/badge.svg)](https://github.com/tinygo-org/pio/actions/workflows/build.yml)

Provides clean API to interact with RP2040's on-board Programable Input/Output (PIO) block.
Provides clean API to interact with RP2040/RP2350 on-board Programable Input/Output (PIO) block.
See chapter 3 of the [RP2040 datasheet](https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#page=310) for more information.


Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package pio

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/pio.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package pio

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/dma.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/i2s.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/i2s.pio
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public entry_point:
set x, 14 side 0b11

% go {
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/i2s_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rp2-pio/piolib/parallel8.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/parallel8.pio
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.wrap

% go {
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/parallel8_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rp2-pio/piolib/pulsar.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/pulsar.pio
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ decloop:


% go {
//go:build rp2040
//go:build rp2040 || rp2350
package piolib

import (
Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/pulsar_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi.pio
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
in pins, 1 side 1 [1] ; instruction stalls, so we stall with SCK low)

% go {
//go:build rp2040
//go:build rp2040 || rp2350
package piolib

import (
Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi3w.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi3w.pio
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end:
.wrap

% go {
//go:build rp2040
//go:build rp2040 || rp2350
package piolib

import (
Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi3w_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rp2-pio/piolib/spi_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rp2-pio/piolib/ws2812b.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package piolib

Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/ws2812b.pio
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ hilo:
jmp !osre bitloop [1]

% go {
//go:build rp2040
//go:build rp2040 || rp2350
package piolib

import (
Expand Down
2 changes: 1 addition & 1 deletion rp2-pio/piolib/ws2812b_pio.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading