STM8L101F3P6查询发送中断接收
时间:11-09
来源:互联网
点击:
USART_ITConfig(USART_IT_RXNE,ENABLE);//打开串口接收中断 } /******************************************************************************/ /* Function name: UART1_SendByte */ /* Descriptions: 发送单字节 */ /* input parameters: data:待发送数据 */ /* output parameters: 无 */ /* Returned value: 无 */ /******************************************************************************/ void USART_SendByte(uint8_t data) { USART_SendData8((unsigned char)data); /* Loop until the end of transmission */ while (USART_GetFlagStatus(USART_FLAG_TXE) == RESET); } /******************************************************************************/ /* Function name: UART1_SendString */ /* Descriptions: 发送字符串 */ /* input parameters: 无 */ /* output parameters: 无 */ /* Returned value: 无 */ /******************************************************************************/ void USART_SendString(uint8_t* Data,uint16_t len) { uint16_t i=0; for(;id assert_failed(uint8_t* file, uint32_t line) { /* User can add his own implementation to report the file name and line number, ex: printf("Wrong parameters value: file %s on line %drn", file, line) */ /* Infinite loop */ while (1) { } } #endif /*********************************END OF FILE**********************************/
STM8L101F3P6查询发送中断接 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)
