Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

General • Re: RP2350 PIO DMA performance question

$
0
0

Code:

inline uint32_t *address_verification(uint32_t address) {return (uint32_t *) (0x20000000 + (address & (uint32_t) 0x7FFFF));}void function() {while (true) {if (!pio_sm_is_rx_fifo_empty(pio0, 0) {pio_sm_put(pio0, 0) = *address_verification(pio_sm_get(pio0, 0)); }}}

Statistics: Posted by dthacher — Mon Aug 26, 2024 7:38 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles