微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > stm32 Flash读写

stm32 Flash读写

时间:11-23 来源:互联网 点击:

127

128USART_InitStructure.USART_BaudRate = 9600;

129USART_InitStructure.USART_WordLength = USART_WordLength_8b;

130USART_InitStructure.USART_StopBits = USART_StopBits_1;

131USART_InitStructure.USART_Parity = USART_Parity_No;

132USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;

133USART_InitStructure.USART_Mode = USART_Mode_Rx|USART_Mode_Tx;

134USART_Init(USART1,&USART_InitStructure);

135

136USART_Cmd(USART1,ENABLE);

137}

138

139#if PRINTF_ON

140

141int fputc(int ch,FILE *f)

142{

143USART_SendData(USART1,(u8) ch);

144while(USART_GetFlagStatus(USART1,USART_FLAG_TC) == RESET);

145return ch;

146}

147

148#endif


Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top