Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some comment changes
Browse files Browse the repository at this point in the history
kilograham committed Nov 22, 2024

Verified

This commit was signed with the committer’s verified signature.
gitaalekhyapaul Gita Alekhya Paul
1 parent abb9562 commit 2160bc1
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pio/uart_rx/uart_rx.c
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@ 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 so we can address gpios >= 32 if needed and supported by the hardware
// 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);

3 changes: 2 additions & 1 deletion pio/uart_rx/uart_rx_intr.c
Original file line number Diff line number Diff line change
@@ -108,7 +108,8 @@ 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 so we can address gpios >= 32 if needed and supported by the hardware
// 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);

3 changes: 2 additions & 1 deletion pio/uart_tx/uart_tx.c
Original file line number Diff line number Diff line change
@@ -26,7 +26,8 @@ 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 so we can address gpios >= 32 if needed and supported by the hardware
// 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);

3 changes: 2 additions & 1 deletion pio/ws2812/ws2812.c
Original file line number Diff line number Diff line change
@@ -118,7 +118,8 @@ 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 so we can address gpios >= 32 if needed and supported by the hardware
// 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);

3 changes: 2 additions & 1 deletion pio/ws2812/ws2812_parallel.c
Original file line number Diff line number Diff line change
@@ -290,7 +290,8 @@ 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 so we can address gpios >= 32 if needed and supported by the hardware
// 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);

0 comments on commit 2160bc1

Please sign in to comment.