Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

UM0851 Datasheet(PDF) 100 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 100 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 96Page - STMicroelectronics UM0851 Datasheet HTML 97Page - STMicroelectronics UM0851 Datasheet HTML 98Page - STMicroelectronics UM0851 Datasheet HTML 99Page - STMicroelectronics UM0851 Datasheet HTML 100Page - STMicroelectronics UM0851 Datasheet HTML 101Page - STMicroelectronics UM0851 Datasheet HTML 102Page - STMicroelectronics UM0851 Datasheet HTML 103Page - STMicroelectronics UM0851 Datasheet HTML 104Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 100 / 245 page
background image
Communication device drivers
UM0851
100/245
Doc ID 16604 Rev 2
Figure 26.
UART software system architecture
There are different types of TTY drivers: console & serial port. The console driver is used at
two different places in Linux. Firstly, at boot time it is used before the initialization of the
serial TTY framework as it takes some time for the serial TTY framework to initialize during
Linux boot up. Secondly, after Linux boot up, the console device sits in the lowest levels of
Linux in order to bring critical information out of the system as soon as possible. It is not
involved in all the complexity of TTY management.
The serial ports are named ttyS0, ttyS1, etc. (and usually correspond respectively to COM1,
COM2, etc.). For each such serial port, there is a special file in the /dev (device) directory.
Major number 4 is associated to the ttyS driver.
For the UART layer major number is 4 and the minor number ranges between 64-255.
Note:
DMA support is not present in the driver.
4.8.3
TTY framework in Linux
The TTY driver serves as an intermediary device between hardware device drivers and user
applications to provide line buffering of input and management of input and output. The
driver is purely software oriented and makes no direct communication with physical
hardware. Instead, the TTY driver relies on an underlying device driver to communicate
directly with the hardware. It has the following system calls:
Open
Open associates a TTY with an underlying char-oriented hardware device. The device
should already be opened and initialized before the TTY is opened. When the port is
opened for the first time you can do the necessary hardware initialization and memory
allocation.
Since a serial port is a file, the open() function is used to access it.
●
Open() returns a file descriptor, which is just an int.
●
Open() returns -1 if any error occurs.
To open a serial port:
#include <fcntl.h>
int fd;
/* The name argument is the filename
"/dev/ttyS0" in case of SPEAr300
Application
Hardware
Kernel space
User space
Console driver
Linux TTY layer
UART driver
UART hardware ARM PL011



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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