Refactor pin alternate function handling to a separate source file
Refactor system_init in anticipation of adding SPI support
Add SPI to the emulator
Add initial dummy support for SPI