| 전자부품 데이터시트 검색엔진 |
|
UM0851 데이터시트(PDF) 104 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 데이터시트(HTML) 104 Page - STMicroelectronics |
|
104 / 245 page ![]() Communication device drivers UM0851 104/245 Doc ID 16604 Rev 2 /*Enable the receiver and set local mode....*/ options.c_cflag|= (CLOCAL | CREAD); /*Set the new options for the port..........*/ ioctl(fd,TCSETS,&options); read(fd,s,10); close(fd); return 0; } The other functions of the I/O ports like the modem control operations can also be controlled by adding some modem control functions to this application. Some important TTY commands ● Getty getty opens a TTY port, prompts for a login name and invokes the /bin/login command. The getty command sets and manages terminals by setting up the speed, the terminal flags, and the line discipline. Example: /sbin/getty 9600 ttyS1 ● Stty stty is used to change and print the terminal line settings. /* List the attribute settings for a terminal that has a user logged on it already.*/ stty -a -F /dev/ttyS0 /* Disable modem control signals. */ stty clocal -F /dev/ttyS0 /* Enable RTS/CTS handshaking */ stty crtscts -F /dev/ttyS0 /* Set the baud rate of current terminal to 9600 baud. */ stty baud=9600 4.8.4 Configuration options Table 34. UART menuconfig kernel options Configuration option Comment CONFIG_SERIAL_CORE This option enables UART tty framework. CONFIG_SERIAL_CORE_CONSOLE This option enables UART console framework. CONFIG_SPEAR_SERIAL_PL011 This option enables SPEAr UART driver support for TTY framework. CONFIG_SPEAR_SERIAL_PL011_CONSOLE This option enables SPEAr UART driver support for console framework. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |