Move some system specific stuff into hal/src/system.c hal/include/system.h. Move uart src files to hal/src and hal/include. update main to use system files. setup makefiles to use new arrangement