You're looking for an introduction to embedded systems and possibly a solution manual for the book "Embedded Systems: Real-Time Application Programming for ARM Cortex-M Microcontrollers" by Jonathan W. Valvano and, or a similar text by Lee Seshia.
However,"Embedded Systems" 2nd edition by Lee Seshia and Jonathan W. Valvano might be another.
"Embedded Systems: A Contemporary Approach" by James M. Lampsas and V. P. Nelson (not by Lee Seshia).