Skip to content

Commit 2160bc1

Browse files
committed
some comment changes
1 parent abb9562 commit 2160bc1

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

pio/uart_rx/uart_rx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ int main() {
5252
uint offset;
5353

5454
// This will find a free pio and state machine for our program and load it for us
55-
// We use pio_claim_free_sm_and_add_program_for_gpio_range so we can address gpios >= 32 if needed and supported by the hardware
55+
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
56+
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
5657
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_rx_program, &pio, &sm, &offset, PIO_RX_PIN, 1, true);
5758
hard_assert(success);
5859

pio/uart_rx/uart_rx_intr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ int main() {
108108
async_context_add_when_pending_worker(&async_context.core, &worker);
109109

110110
// This will find a free pio and state machine for our program and load it for us
111-
// We use pio_claim_free_sm_and_add_program_for_gpio_range so we can address gpios >= 32 if needed and supported by the hardware
111+
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
112+
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
112113
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_rx_program, &pio, &sm, &offset, PIO_RX_PIN, 1, true);
113114
hard_assert(success);
114115

pio/uart_tx/uart_tx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ int main() {
2626
uint offset;
2727

2828
// This will find a free pio and state machine for our program and load it for us
29-
// We use pio_claim_free_sm_and_add_program_for_gpio_range so we can address gpios >= 32 if needed and supported by the hardware
29+
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
30+
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
3031
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_tx_program, &pio, &sm, &offset, PIO_TX_PIN, 1, true);
3132
hard_assert(success);
3233

pio/ws2812/ws2812.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ int main() {
118118
uint offset;
119119

120120
// This will find a free pio and state machine for our program and load it for us
121-
// We use pio_claim_free_sm_and_add_program_for_gpio_range so we can address gpios >= 32 if needed and supported by the hardware
121+
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
122+
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
122123
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&ws2812_program, &pio, &sm, &offset, WS2812_PIN, 1, true);
123124
hard_assert(success);
124125

pio/ws2812/ws2812_parallel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ int main() {
290290
uint offset;
291291

292292
// This will find a free pio and state machine for our program and load it for us
293-
// We use pio_claim_free_sm_and_add_program_for_gpio_range so we can address gpios >= 32 if needed and supported by the hardware
293+
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
294+
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
294295
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&ws2812_parallel_program, &pio, &sm, &offset, WS2812_PIN_BASE, count_of(strips), true);
295296
hard_assert(success);
296297

0 commit comments

Comments
 (0)