Real-Time And Embedded Systems Building Blocks For Cyber-Physical Systems