Throughout this book, simple examples of minimal complexity have been provided. Our focus has been to keep the code clear and readable to illustrate the particular real-time operating system (RTOS) concepts being addressed and keep the interactions with hardware as easily understood as possible. However, in the real world, the best code bases for long-term development are those that allow developers to move quickly with great flexibility and determination to meet targets. This chapter provides suggestions on how to go about architecting, creating, growing, and maintaining a code base that will be flexible enough for long-term use. We'll be exploring these concepts with real code by cleaning up some of the code developed in earlier chapters through the addition of flexibility and better portability to different hardware.
This...