In the following diploma thesis we describe an implementation of an operating system for microcontrollers. The system is inspired by the FreeRTOS operating system which is one of the most popular RTOS operating systems. Firstly we describe the implementation of the scheduler and context switching, the most important parts of an RTOS operating system. Secondly we describe the implementation of functions, such as interprocess communication and dynamic memory allocation. The system is mostly written in the C programming language with some inline assembly language. The system is written for the STM32F4DISCOVERY development board, which uses an ARM Cortex-M4 processor. Thus the operating system can run on any computer which has an ARM Cortex-M4 processor.
|