You don't have a function that is reused with different inputs...you have two different functions state_change_up and state_change_dw with different code in them.
I don't know what ARM32_8MHz means (and neither does Google) so it might make a difference but most Arduinos have hardware serial on pins 0 and 1. So attaching switches to them and then using Serial.prints rarely works out well.
Steve