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

SDK • Re: Question about sm_config_set_sideset

$
0
0

Code:

$ echo .program test > test.pio$ echo .side_set 2 opt >> test.pio$ pioasm test.pio | tail};static inline pio_sm_config test_program_get_default_config(uint offset) {    pio_sm_config c = pio_get_default_sm_config();    sm_config_set_wrap(&c, offset + test_wrap_target, offset + test_wrap);    sm_config_set_sideset(&c, 3, true, false);    return c;}#endif

Statistics: Posted by PicoTinker — Sun Mar 23, 2025 12:33 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles