This is going to be a long post. It is parts of the Arduino code that runs the flash programmer and bus.
SetupLoop.cpp
SerialIF.h
SerialIF.cpp
CPLD.h
CPLD.cpp
Bus.h
Bus.cpp
Flash.h
Flash.cpp
MCUBus.h
MCUBus.cpp
Exchanger.h
Exchanger.cpp
Interpreter.h
Interpreter.cpp
ArgInfo.h
ArgInfo.cpp
Commands.h
Commands.cpp
Responses.h
Responses.cpp
CmdResp.h
CommandCodeEnum.h