文件名称:2_2_uart_shell

  • 所属分类:
  • 嵌入式Linux
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2017-02-08
  • 文件大小:
  • 31kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 小**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

lpc1788-2_2_uart_shell

例程描述:

本例程在串口 0 的通信基础上,添加了一些简单的命令行处理过程。

操作过程:

(1)打开一个串口终端,将代码运行起来。这时 4 个 LED 灯呈现流水灯显示模式。

(2)使用串口线延长线将开发板 UART0 与 PC 机连接。打开超级终端软件,通信波特

率为 115200,其它参数使用默认的配置。在超级终端中输入 回车,终端上显示“->”。

(3)在串口终端中输入“help”,会显示相关命令的帮助信息,这里是 animal 的信息。

-Lpc1788-2_2_uart_shell

Routine Descr iption:

  This routine adds some simple command-line processing to serial port 0 communication.

Operation process:

(1) open a serial terminal, the code to run up. At this time four LED lights show water lamp display mode.

(2) Use the serial cable extension cable to connect the development board UART0 to the PC. Open the HyperTerminal software, Communication Porter

The rate is 115200, and the other parameters use the default configuration. Enter a carriage return in the HyperTerminal, and -> appears on the terminal.

(3) in the serial terminal input help , will display the relevant command help information, here is the animal information.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





2_2_uart_shell\prj\lpc1788.uvopt

..............\...\lpc1788.uvproj

..............\src\main\animal.c

..............\...\....\led.c

..............\...\....\led.h

..............\...\....\main.c

..............\...\....\memory.c

..............\...\....\memory.h

..............\...\....\shell.c

..............\...\....\shell.h

..............\...\target\LPC177x_8x.h

..............\...\......\startup_lpc177x_8x.s

..............\...\......\system_lpc177x_8x.c

..............\...\......\uart0.h

..............\...\......\uart0_lpc177x_8x.c

..............\...\main

..............\...\target

..............\prj

..............\src

2_2_uart_shell

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org