master_clock
Master clock protocol driver for IBM slave clocks from an Arduino
The code is also split out to allow it to run on a PC as a test/simulator. Other hardware interfaces could be added easily enough. The Arduino is pretty specific about its code layout, but other interfaces are not so persnickity.