The Zephyr Project is a scalable real-time operating system (RTOS) supporting multiple hardware architectures, optimized for resource constrained devices, and built with security in mind.
The Zephyr Out-of-tree Module Example is a reference for how existing repositories may be extended into a well-integrated Zephyr module.