Skip to content

Commit

Permalink
some comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Nov 22, 2024
1 parent 2160bc1 commit db7bfa2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pio/uart_rx/uart_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main() {
uint offset;

// This will find a free pio and state machine for our program and load it for us
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range variant)
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_rx_program, &pio, &sm, &offset, PIO_RX_PIN, 1, true);
hard_assert(success);
Expand Down
2 changes: 1 addition & 1 deletion pio/uart_rx/uart_rx_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main() {
async_context_add_when_pending_worker(&async_context.core, &worker);

// This will find a free pio and state machine for our program and load it for us
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range variant)
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_rx_program, &pio, &sm, &offset, PIO_RX_PIN, 1, true);
hard_assert(success);
Expand Down
2 changes: 1 addition & 1 deletion pio/uart_tx/uart_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main() {
uint offset;

// This will find a free pio and state machine for our program and load it for us
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range variant)
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&uart_tx_program, &pio, &sm, &offset, PIO_TX_PIN, 1, true);
hard_assert(success);
Expand Down
2 changes: 1 addition & 1 deletion pio/ws2812/ws2812.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int main() {
uint offset;

// This will find a free pio and state machine for our program and load it for us
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range variant)
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
bool success = pio_claim_free_sm_and_add_program_for_gpio_range(&ws2812_program, &pio, &sm, &offset, WS2812_PIN, 1, true);
hard_assert(success);
Expand Down
2 changes: 1 addition & 1 deletion pio/ws2812/ws2812_parallel.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ int main() {
uint offset;

// This will find a free pio and state machine for our program and load it for us
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range) variant
// We use pio_claim_free_sm_and_add_program_for_gpio_range (for_gpio_range variant)
// so we will get a PIO instance suitable for addressing gpios >= 32 if needed and supported by the hardware
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);
hard_assert(success);
Expand Down

0 comments on commit db7bfa2

Please sign in to comment.