Skip to content

Commit

Permalink
Merge pull request adafruit#9494 from timchinowsky/fix-pio-typo
Browse files Browse the repository at this point in the history
fix pio macro typo
  • Loading branch information
tannewt authored Aug 8, 2024
2 parents 90fec27 + f8fe370 commit f8f1741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/rp2pio/StateMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static int8_t _sm_dma_plus_one[NUM_PIOS][NUM_PIO_STATE_MACHINES];
#define SM_DMA_ALLOCATED(pio_index, sm) (_sm_dma_plus_one[(pio_index)][(sm)] != 0)
#define SM_DMA_GET_CHANNEL(pio_index, sm) (_sm_dma_plus_one[(pio_index)][(sm)] - 1)
#define SM_DMA_CLEAR_CHANNEL(pio_index, sm) (_sm_dma_plus_one[(pio_index)][(sm)] = 0)
#define SM_DMA_SET_CHANNEL(pio_isntance, sm, channel) (_sm_dma_plus_one[(pio_index)][(sm)] = (channel) + 1)
#define SM_DMA_SET_CHANNEL(pio_index, sm, channel) (_sm_dma_plus_one[(pio_index)][(sm)] = (channel) + 1)

static PIO pio_instances[2] = {pio0, pio1};
typedef void (*interrupt_handler_type)(void *);
Expand Down

0 comments on commit f8f1741

Please sign in to comment.