TrampolineRTOS / trampoline

Trampoline is a static RTOS for small embedded systems. Its API is aligned with OSEK/VDX OS and AUTOSAR OS 4.2 standards.
GNU General Public License v2.0
614 stars 268 forks source link

machines: posix: Fixed OS base types size on 64-bit development systems. #134

Closed RICCIARDI-Adrien closed 1 year ago

RICCIARDI-Adrien commented 1 year ago

On a 64-bit development machine, the C type 'int' size is 4 bytes, but the 'long' type size is 8 bytes.

This commit fixes the TrampolineOS POSIX machine 'uint32' and 'sint32' types that are 8-byte long when compiled on a x86_64 machine instead of being 4-byte long.

RICCIARDI-Adrien commented 1 year ago

Hi @jlbirccyn, is this OK for you ? If yes, I can add the POSIX CI in another pull request that will build the CAN stack through the POSIX can_demo example.

jlbirccyn commented 1 year ago

Yes it is OK. I merged the PR.

Best Regards