Code for the switch hardware platform