ThrowTheSwitch / CException

Lightweight exception implementation for C
http://throwtheswitch.org
MIT License
320 stars 64 forks source link

Does this nice lib work with FreeRTOS? #11

Closed spachner closed 4 years ago

spachner commented 5 years ago

Hi,

does this nice lib work with FreeRTOS, too?

regards

spachner

mvandervoord commented 5 years ago

Yes.

You will need to use the FreeRTOS context switch hook in order to set the current task ID in a variable so you can define it to be fetched by EXCEPTION_GET_ID. Then set EXCEPTION_NUM_ID to the number of tasks you have running.

Mark

On Fri, Jan 18, 2019 at 7:43 AM spachner notifications@github.com wrote:

Hi,

does this nice lib work with FreeRTOS, too?

regards

spachner

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ThrowTheSwitch/CException/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AABAfyjoN9U1lp19thV9sptamraLfePcks5vEcGLgaJpZM4aH1sA .