There is 3 basic type of computer systems
Just your own firmware written on low-level programing language.
There is hardware abstraction layer (HAL) libraries for most dev boards and chips. Where you can easily reach the board and processor peripheries.
A real-time operating system is an operating system for real-time applications that processes data and events that have critically defined time constraints.
Also notes: