TIM3_DeInit();
TIM3_TimeBaseInit(TIM3_PRESCALER_1,0xFFFF);
TIM3_ITConfig(TIM3_IT_UPDATE,ENABLE);
enableInterrupts();
GPIO_Init(GPIOD,0x01,GPIO_MODE_OUT_PP_LOW_FAST);
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
UART2_DeInit();
UART2_Init((u32)9600,UART2_WORDLENGTH_8D,UART2_STOPBITS_1,UART2_PARITY_NO,UART2_SYNCMODE_CLOCK_DISABLE,UART2_MODE_TXRX_ENABLE);
UART2_ClearITPendingBit(UART2_IT_RXNE);
UART2_ITConfig(UART2_IT_IDLE,ENABLE);
UART2_ITConfig(UART2_IT_RXNE_OR,ENABLE);
以上来自于谷歌翻译
以下为原文
TIM3_DeInit();
TIM3_TimeBaseInit(TIM3_PRESCALER_1,0xFFFF);
TIM3_ITConfig(TIM3_IT_UPDATE, ENABLE);
enableInterrupts();
GPIO_Init(GPIOD, 0x01 , GPIO_MODE_OUT_PP_LOW_FAST);
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
UART2_DeInit();
UART2_Init((u32)9600, UART2_WORDLENGTH_8D, UART2_STOPBITS_1, UART2_PARITY_NO, UART2_SYNCMODE_CLOCK_DISABLE, UART2_MODE_TXRX_ENABLE);
UART2_ClearITPendingBit(UART2_IT_RXNE);
UART2_ITConfig(UART2_IT_IDLE, ENABLE);
UART2_ITConfig(UART2_IT_RXNE_OR, ENABLE);
TIM3_DeInit();
TIM3_TimeBaseInit(TIM3_PRESCALER_1,0xFFFF);
TIM3_ITConfig(TIM3_IT_UPDATE,ENABLE);
enableInterrupts();
GPIO_Init(GPIOD,0x01,GPIO_MODE_OUT_PP_LOW_FAST);
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
UART2_DeInit();
UART2_Init((u32)9600,UART2_WORDLENGTH_8D,UART2_STOPBITS_1,UART2_PARITY_NO,UART2_SYNCMODE_CLOCK_DISABLE,UART2_MODE_TXRX_ENABLE);
UART2_ClearITPendingBit(UART2_IT_RXNE);
UART2_ITConfig(UART2_IT_IDLE,ENABLE);
UART2_ITConfig(UART2_IT_RXNE_OR,ENABLE);
以上来自于谷歌翻译
以下为原文
TIM3_DeInit();
TIM3_TimeBaseInit(TIM3_PRESCALER_1,0xFFFF);
TIM3_ITConfig(TIM3_IT_UPDATE, ENABLE);
enableInterrupts();
GPIO_Init(GPIOD, 0x01 , GPIO_MODE_OUT_PP_LOW_FAST);
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
UART2_DeInit();
UART2_Init((u32)9600, UART2_WORDLENGTH_8D, UART2_STOPBITS_1, UART2_PARITY_NO, UART2_SYNCMODE_CLOCK_DISABLE, UART2_MODE_TXRX_ENABLE);
UART2_ClearITPendingBit(UART2_IT_RXNE);
UART2_ITConfig(UART2_IT_IDLE, ENABLE);
UART2_ITConfig(UART2_IT_RXNE_OR, ENABLE);
举报