Config Switch.cfg  and code optimalize

1: Switch.cfg format the Switch info
2: Code use #define to optimalize