A Hybrid Quadratic Programming Framework for Real-Time Embedded Safety-Critical Control