Skip to content

Commit 6b99053

Browse files
committed
Explicate .pio file usage
1 parent 0ddaf75 commit 6b99053

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

ports/raspberrypi/common-hal/audiobusio/I2SOut.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
#include "bindings/rp2pio/StateMachine.h"
2020

2121
const uint16_t i2s_program[] = {
22-
/*
22+
23+
/* From i2s.pio:
24+
2325
.program i2s
2426
.side_set 2
2527
@@ -55,7 +57,8 @@ const uint16_t i2s_program[] = {
5557

5658

5759
const uint16_t i2s_program_left_justified[] = {
58-
/*
60+
/* From i2s_left.pio:
61+
5962
.program i2s
6063
.side_set 2
6164
@@ -91,7 +94,8 @@ const uint16_t i2s_program_left_justified[] = {
9194

9295
// Another version of i2s_program with the LRCLC and BCLK pin swapped
9396
const uint16_t i2s_program_swap[] = {
94-
/*
97+
/* From i2s_swap.pio:
98+
9599
.program i2s
96100
.side_set 2
97101
@@ -128,7 +132,8 @@ const uint16_t i2s_program_swap[] = {
128132
// Another version of i2s_program_left_justified with the LRCLC and BCLK pin
129133
// swapped.
130134
const uint16_t i2s_program_left_justified_swap[] = {
131-
/*
135+
/* From i2s_swap_left.pio:
136+
132137
.program i2s
133138
.side_set 2
134139
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
.pio files right now are compiled by hand with pico-sdk/tools/pioasm and inserted into I2SOut.c
2+
3+
i2s.pio regular pin order, not left_justified
4+
i2s_left.pio regular pin order, left_justified
5+
6+
i2s_swap.pio swapped pin order, not left_justified
7+
i2s_swap_left.pio swapped pin order, left_justified

0 commit comments

Comments
 (0)