Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stepper/Waveform to use EV_CUSTOM events #2576

Open
gfwilliams opened this issue Nov 15, 2024 · 1 comment
Open

Stepper/Waveform to use EV_CUSTOM events #2576

gfwilliams opened this issue Nov 15, 2024 · 1 comment

Comments

@gfwilliams
Copy link
Member

gfwilliams commented Nov 15, 2024

I just added EV_CUSTOM which allows us to poke stuff into the IO FIFO

Right now for Waveform and Stepper we actually just poll any active waveform/stepper timer tasks on idle, but now we should be able to send events from the timer task directly instead.

Best way to do this would be to add something to build_jswrapper to allow custom JSON to handle a specific EV_CUSTOM enum

But we also have the issue of knowing which Waveform/stepper the event is for. This goes back to #1444 where ideally each timer task should have a specific index that doesn't change

@gfwilliams
Copy link
Member Author

gfwilliams commented Nov 18, 2024

EV_CUSTOM event handler now added with 4a02875

So now we're just waiting on #1444 to ensure the tasks can have a unique ID

edit: Actually we could just have jstimer push a EVC_TIMER event and then handle that rather than polling in the idle loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant