| A traditional real-time operating system consumes a considerable amount of CPU time to perform task and memory management,inter-process communication and other related operations.On the other hand,any application software running an RTOS results in increased code size.To improve the speedup and reduce the code size,there is an ever growing demand to tailor the complexity of the RTOS to the requirements of the specific application.It is not just the result that is important,timing issues also have to be considered.With the deepening and extension of RTOS practical application,we put more strict requirements on RTOS.Real-time has become a basic requirement of RTOS.In order to satisfy the complexity of real-time applications, real-time operating system is also becoming larger.As the system becomes larger,task scheduling and communications among tasks become more complex and its impact on the entire system performance becomes more significant.Implementing communication module in hardware can meet complex RTOS’s requirement without affecting its performance.In order to improve the system performance, this article put forward a new concept hard real-time operating system.We implement the new system by hardening the task schedule module,the system clock module and the bus interface module of μC/OS-II.The part of searching is implemented by hardware,while task switching is still implemented by software. The system clock module makes use of programmable hardware timers to configure conveniently.We design the bus interface module to achieve bidirectional data transfer between software and hardware. |