rearrange the code by:

1.move the IO configuration code to peripheral_config.c

2.move declairation to main.h