Skip to content

UART PAL requirements in multi-threaded OS #9873

Answered by abtink
jkcko asked this question in Q&A
Discussion options

You must be logged in to vote

Generally no. All public OT APIs and platform callbacks should be called from same OS context (task/thread).

You can refer to the specific API documentation to see if it explicitly allows calls from different contexts. I know of only one example otPlatSpiSlaveTransactionCompleteCallback:

* This callback can be called from ISR context. The return value from this function indicates if any further
* processing is required. If `TRUE` is returned the platform spi-slave driver implementation must invoke the
* transaction process callback (`aProcessCallback` set in `otPlatSpiSlaveEnable()`) whic…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jkcko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants