Move chip.h to the same location as in arduino/sam
Cleanup
Lots of cleanup and inlining