I am using sm_config_set_fifo_join to join the FIFO, but I am using the function pio_sm_init to set the config ad initialise the state machine. I checked the SDK documentation and found the function pio_sm_set_config. However, none of the example programs in the examples repository show usage of this.
I understand that pio_sm_set_config just associates a SM with a configuration, but does not 'initialise' it. Is my understanding correct.
Also, to force execute PIO code to set the x/y/OSR registers, should the SM be running (I assume so, but checking)?
The API pio_sm_set_enabled starts running the state machine. So, should I initialise the SM without the JOIN, start the SM, and then when it is running set a new configuration that has the JOIN.
Please clarify,
Sreenath
I understand that pio_sm_set_config just associates a SM with a configuration, but does not 'initialise' it. Is my understanding correct.
Also, to force execute PIO code to set the x/y/OSR registers, should the SM be running (I assume so, but checking)?
The API pio_sm_set_enabled starts running the state machine. So, should I initialise the SM without the JOIN, start the SM, and then when it is running set a new configuration that has the JOIN.
Please clarify,
Sreenath
Statistics: Posted by sreenath — Sat Dec 28, 2024 3:43 pm