我的ucos 串口怎么发不出数据啊

[复制链接]
1626|0
 楼主| haitianhappy 发表于 2012-7-20 16:29 | 显示全部楼层 |阅读模式
只是在LED的任务里加了一句发送字符串的函数 LED可以执行
void Task_LED3(void *p_arg)
{
(void)p_arg;
SysTick_init();
while (1)
{   
     GPIO_ResetBits(GPIOF, GPIO_Pin_8);
  OSTimeDlyHMSM(0,0,1,0);

  Uart1SendString("AAAAABBBBB");
  GPIO_SetBits(GPIOF, GPIO_Pin_8);
//  GPIO_WriteBit(GPIOE, GPIO_Pin_8, (BitAction)(1 - GPIO_ReadOutputDataBit(GPIOF, GPIO_Pin_8)));/*PC6管脚翻转*/
  OSTimeDlyHMSM(0,0,1,0);
}
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

15

主题

131

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部