Convert matrix code to C.
Convert timer to C.
Convert USB code to C.
Glue C and C++ code together.