Cosmetic changes (thanks to Bertrand's review)
perMain() moved into main_avr.cpp and main_arm.cpp
perMainArm() renamed to perMain()