您好!
我正在尝试使用 cc2650 Launchpad 读取串行输入。 但是、当该代码上传到 LaunchPad 时、没有任何反应。 如果有人知道做这方面的工作、会有很大帮助。
| *\file | |
| *获取串行输入并打印结果。 | |
| * | |
| #include | |
| #include | |
| #include "contiki.h" | |
| #include "dev/serial-line.h" | |
| #include "DEV_cc26xx-uart.h" | |
| /*------------------ * | |
| 过程(串行输入、"串行输入"); | |
| autostart_processes (序列输入); | |
| /*------------------ * | |
| /*------------------ * | |
| process_thread (串行输入、EV、数据) | |
| { | |
| cc26xx_UART_SET_INPUT (serial_line_input_Byte); | |
| process_bege(); | |
| while (1){ | |
| process_yield (); | |
| if (EV = serial_line_event_message){ | |
| printf ("接收到的输入:%s\n"、(char *) data); | |
| } | |
| } | |
| process_end(); | |
| } |
这是我应用的代码。串行输出由 launchpad 的 Arduino 到 Rx (DIO3)引脚提供。无法理解为什么不起作用。