Skip to content

Using resumable functions with RTOS (ThreadX) #1185

Closed Answered by salkinium
ClemensElflein asked this question in Q&A
Discussion options

You must be logged in to vote

I'm afraid modm doesn't support yield hinting in any way, it's purely based on polling. modm was never meant to be used in an RTOS, since most RTOS have their own HAL. You can only hack the I2C implementation to add the semaphore into the driver.
Does ThreadX not have it's own HAL for STM32H7? modm doesn't support a lot of the advanced peripherals on the H7.

It's something I want to change with the stackful fiber scheduler, but progress is slow.
For FreeRTOS, there recently was a PR that added FreeRTOS specialization for UART buffers, something like this would be needed for other RTOS as well.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@salkinium
Comment options

Answer selected by ClemensElflein
@ClemensElflein
Comment options

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