#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
/**********************************
通过串口4向调试助手发送“Hello”
**********************************/
int main(void)
{
int fd;
struct termios opts;
int ret;
char *buffer = "Hello";
fd = open("/dev/ttySAC3", O_RDWR);
if (fd < 0)
{
printf("open ttys3");
return 1;
}
printf("t
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
/**********************************
通过串口4向调试助手发送“Hello”
**********************************/
int main(void)
{
int fd;
struct termios opts;
int ret;
char *buffer = "Hello";
fd = open("/dev/ttySAC3", O_RDWR);
if (fd < 0)
{
printf("open ttys3");
return 1;
}
printf("t