| Electronic Components Datasheet Search |
|
UM0851 Datasheet(PDF) 104 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 Datasheet(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. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |