#elif(DEBUG?==?DEBUG_UART4) ????RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART4,?ENABLE); ????RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,?ENABLE); ????GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_10; ????GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz; ????GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_AF_PP; ????GPIO_Init(GPIOC,?&GPIO_InitStructure);
#elif(DEBUG?==?DEBUG_UART4) ????USART_Init(UART4,?&USART_InitStructure); ????USART_Cmd(UART4,?ENABLE);
#elif(DEBUG?==?DEBUG_UART4) ????while(USART_GetFlagStatus(UART4,?USART_FLAG_TC)?==?RESET); ????USART_SendData(UART4,?*buf++);
热门产品 :
CH390:以太网控制器芯片