회원 및 비회원 모두 열람이 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.
who can help me to start up the UART0 for mp2530f in linux,thanks!
I want to use the GPS in linux system.
Is the uart driver in linux-2.6.20 for mp2530f right?
You can find the reference code this link
mp2530f kernel code has serial modem bit setting error.
thank you for your answer.now when I "cat /dev/tts/0,1,2..5". The system won't halt anymore.but I still can't receive GPS signal.
can you give me some advice?
thank you very much!
this is my setting for serial:
struct termios newtio;
bzero(&newtio, sizeof(newtio));
newtio.c_lflag &= ~(ECHO | ICANON| ECHOE | ISIG);
newtio.c_cflag = B115200 | CS8 | CLOCAL | CREAD;
newtio.c_iflag = IGNPAR;
newtio.c_oflag = 0;
newtio.c_oflag &= ~(OPOST);
newtio.c_cc[VTIME] = 5; /* inter-character timer unused */
newtio.c_cc[VMIN] = 0; /* blocking read until 9 chars received */
tcflush(fd, TCIFLUSH);
tcsetattr(fd,TCSANOW,&newtio);
can anyone help me? Thank you very much!