| //Port Config static void App_PortCfg(void)
 {
 /* GPIO initialize */
 stc_gpio_init_t stcGpioInit;
 /* PC13 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_13, &stcGpioInit);
 
 /* PC15 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_15, &stcGpioInit);
 
 /* PH0 set to XTAL-EXT/XTAL-OUT */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_ANALOG;
 (void)GPIO_Init(GPIO_PORT_H, GPIO_PIN_00, &stcGpioInit);
 
 /* PH1 set to XTAL-IN */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_ANALOG;
 (void)GPIO_Init(GPIO_PORT_H, GPIO_PIN_01, &stcGpioInit);
 
 /* PC0 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_00, &stcGpioInit);
 
 /* PC1 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_01, &stcGpioInit);
 
 /* PC2 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_02, &stcGpioInit);
 
 /* PC3 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_03, &stcGpioInit);
 
 /* PA0 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;//50mhz~100mhz
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_00, &stcGpioInit);
 
 /* PA1 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_01, &stcGpioInit);
 
 /* PA2 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_02, &stcGpioInit);
 
 /* PA3 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_03, &stcGpioInit);
 
 /* PA4 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_04, &stcGpioInit);
 
 /* PA5 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_05, &stcGpioInit);
 
 /* PA6 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_06, &stcGpioInit);
 
 /* PA7 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_07, &stcGpioInit);
 
 /* PC4 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_04, &stcGpioInit);
 
 /* PC5 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_05, &stcGpioInit);
 
 /* PD8 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_08, &stcGpioInit);
 
 /* PD9 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_09, &stcGpioInit);
 
 /* PC6 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_06, &stcGpioInit);
 
 /* PC7 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_07, &stcGpioInit);
 
 /* PC8 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_08, &stcGpioInit);
 
 /* PC9 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_09, &stcGpioInit);
 
 /* PA8 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv=PIN_HIGH_DRV;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_08, &stcGpioInit);
 
 /* PA9 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_09, &stcGpioInit);
 
 /* PC10 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_10, &stcGpioInit);
 
 /* PC11 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_11, &stcGpioInit);
 
 /* PC12 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_12, &stcGpioInit);
 
 /* PD0 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_00, &stcGpioInit);
 
 /* PD1 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_01, &stcGpioInit);
 
 /* PD2 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_02, &stcGpioInit);
 
 /* PD3 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_03, &stcGpioInit);
 
 /* PD4 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_04, &stcGpioInit);
 
 /* PD5 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_05, &stcGpioInit);
 
 /* PD6 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_06, &stcGpioInit);
 
 /* PD7 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp         = PIN_PU_OFF;
 stcGpioInit.u16PinDrv= PIN_HIGH_DRV;  // 设置为高驱动模式50MHZ~100MHz
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_07, &stcGpioInit);
 
 /* PC14 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_C, GPIO_PIN_14, &stcGpioInit);
 
 /* PE7 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_07, &stcGpioInit);
 
 /* PE8 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_08, &stcGpioInit);
 
 /* PE9 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_09, &stcGpioInit);
 
 /* PE11 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_11, &stcGpioInit);
 
 /* PE10 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_10, &stcGpioInit);
 
 /* PE12 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_12, &stcGpioInit);
 
 /* PE13 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_13, &stcGpioInit);
 
 /* PE6 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_06, &stcGpioInit);
 
 /* PE3 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_03, &stcGpioInit);
 
 /* PE2 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_02, &stcGpioInit);
 
 /* PD14 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_14, &stcGpioInit);
 
 /* PD15 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_15, &stcGpioInit);
 
 /* PB11/MD set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_11, &stcGpioInit);
 
 /* PB15 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_15, &stcGpioInit);
 
 /* PB14 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_14, &stcGpioInit);
 
 /* PB13 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_13, &stcGpioInit);
 
 /* PB10 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_10, &stcGpioInit);
 
 /* PE14 set to EIRQ14 */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16ExtInt = PIN_EXTINT_ON;
 (void)GPIO_Init(GPIO_PORT_E, GPIO_PIN_14, &stcGpioInit);
 
 /* PA15 set to EIRQ15 */
 GPIO_SetDebugPort(GPIO_PIN_TDI, DISABLE);
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16ExtInt = PIN_EXTINT_ON;
 (void)GPIO_Init(GPIO_PORT_A, GPIO_PIN_15, &stcGpioInit);
 
 /* PB1 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_01, &stcGpioInit);
 
 /* PB2 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_02, &stcGpioInit);
 
 /* PB0 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_00, &stcGpioInit);
 
 /* PD12 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_12, &stcGpioInit);
 
 /* PD13 set to GPIO-Output */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinDir = PIN_DIR_OUT;
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 (void)GPIO_Init(GPIO_PORT_D, GPIO_PIN_13, &stcGpioInit);
 
 /* PB3 set to GPIO-Input */
 GPIO_SetDebugPort(GPIO_PIN_TDO, DISABLE);
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_03, &stcGpioInit);
 
 /* PB4 set to GPIO-Input */
 GPIO_SetDebugPort(GPIO_PIN_TRST, DISABLE);
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_04, &stcGpioInit);
 
 /* PB5 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_05, &stcGpioInit);
 
 /* PB6 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_06, &stcGpioInit);
 
 /* PB8 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_08, &stcGpioInit);
 
 /* PB9 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_09, &stcGpioInit);
 
 /* PB7 set to GPIO-Input */
 (void)GPIO_StructInit(&stcGpioInit);
 stcGpioInit.u16PinAttr = PIN_ATTR_DIGITAL;
 stcGpioInit.u16PullUp=PIN_PU_ON;
 
 (void)GPIO_Init(GPIO_PORT_B, GPIO_PIN_07, &stcGpioInit);
 
 GPIO_SetFunc(GPIO_PORT_E,GPIO_PIN_04,GPIO_FUNC_40);//SPI3-MOSI
 
 GPIO_SetFunc(GPIO_PORT_E,GPIO_PIN_05,GPIO_FUNC_41);//SPI3-MISO
 
 GPIO_SetFunc(GPIO_PORT_H,GPIO_PIN_02,GPIO_FUNC_15);//EVENTOUT
 
 GPIO_SetFunc(GPIO_PORT_E,GPIO_PIN_15,GPIO_FUNC_5);//TIMA-5-TRIG
 
 GPIO_SetFunc(GPIO_PORT_B,GPIO_PIN_12,GPIO_FUNC_3);//TIM6-TRIGB
 
 GPIO_SetFunc(GPIO_PORT_D,GPIO_PIN_10,GPIO_FUNC_48);//I2C3-SDA
 
 GPIO_SetFunc(GPIO_PORT_D,GPIO_PIN_11,GPIO_FUNC_49);//I2C3-SCL
 
 GPIO_SetFunc(GPIO_PORT_A,GPIO_PIN_10,GPIO_FUNC_49);//I2C1-SCL
 
 GPIO_SetFunc(GPIO_PORT_A,GPIO_PIN_11,GPIO_FUNC_48);//I2C1-SDA
 
 GPIO_SetFunc(GPIO_PORT_A,GPIO_PIN_12,GPIO_FUNC_4);//TIMA-1-TRIG
 
 GPIO_SetFunc(GPIO_PORT_E,GPIO_PIN_00,GPIO_FUNC_42);//SPI3-SS0
 
 GPIO_SetFunc(GPIO_PORT_E,GPIO_PIN_01,GPIO_FUNC_43);//SPI3-SCK
 
 }
 
 |