"Attach" specific function to specific core? #497
Unanswered
FeuerSturm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
first of all, sorry if this is a stupid question, I'm rather new to C++.
Is there a way to attach a specific function to a specific core that I cannot execute via
setup()/setup1() or loop()/loop1() ?
This is the scenario:
Based on packets I am receiving/interpreting via a usb_hid.setReportCallback I want to execute
different functions, BUT not necessarily on the same core that I setup the hook on.
To my understanding I cannot use usb_hid.setReportCallback on setup() and on setup1() simultaniously.
Is there something I am missing, maybe an easy way of telling the Pico to run function
"void whateverfunction1()" on Core0 and "void whateverfunction2()" on Core1?
Thanks for feedback!
Beta Was this translation helpful? Give feedback.
All reactions