Break out sections of etmc0.c into subroutines
Add changes