micro-os-plus / micro-os-plus-iii

The portable part of µOS++ IIIe (an xpm/npm package)
http://micro-os-plus.github.io
MIT License
115 stars 17 forks source link

Incompatible thread argument types in C api #56

Open LnnrtS opened 3 years ago

LnnrtS commented 3 years ago

This cast is invalid

https://github.com/micro-os-plus/micro-os-plus-iii/blob/1ea30f65acfc9b25e8bf6558035e5dd1bc3b9127/src/rtos/os-c-wrapper.cpp#L3613

because the definitions of thread arguments in µOS++ ( void (*)(const void*) ) and cmsis (void* (*)(void*)) are not compatible.

But neither can be easily changed as it seems.. Probably something to keep in mind for later.

ilg-ul commented 3 years ago

Thank you, I don't have a solution now, we'll keep it in mind for later.