This at least compiles now. Haven't separated out the EMBEDDED code yet.
drwxr-xr-x - src