Ingen lysbildetittel - Department of Computer and Information Science
Ingen lysbildetittel - Department of Computer and Information Science Ingen lysbildetittel - Department of Computer and Information Science
8 Communication with STK1000/Linux • Serial – Cable between PC and STK1000 UART_A – Run minicom –o on your PC • Network – Find the IP address of STK1000 (eg. With ifconfig) – telnet ip-address
9 IO devices in Linux • IO devices are represented by special files in /dev directory • To make the I/O – Open (with the system call open) the file that represents the device to use – Execute ioctl call, if necessary – Read/write with read / write using lseek to switch position – Close the file (close) • System calls are documented in man pages (e.g. man 2 open)
- Page 1 and 2: 1 Tutorial Lecture for Exercise 3 T
- Page 3 and 4: 3 Exercise 3 • Deadline: Friday 2
- Page 5 and 6: 5 The Scorched Land Defence Use you
- Page 7: 7 LINUX on STK1000 • Use SD card
- Page 11 and 12: 11 Compiling new kernel • Source
- Page 13 and 14: 13 Audio • Write audio data to /d
- Page 15 and 16: 15 Creating drivers • 1st source
- Page 17 and 18: 17 Startup and shutdown of the modu
- Page 19 and 20: 19 File functions • The driver co
- Page 21 and 22: 21 Use of hardware (I/O ports) •
- Page 23 and 24: 23 Loading and removal of the modul
- Page 25 and 26: 25 Tips • Start early. Biggest ex
9<br />
IO devices in Linux<br />
• IO devices are represented by special files in /dev<br />
directory<br />
• To make the I/O<br />
– Open (with the system call open) the file that represents the device<br />
to use<br />
– Execute ioctl call, if necessary<br />
– Read/write with read / write using lseek to switch position<br />
– Close the file (close)<br />
• System calls are documented in man pages<br />
(e.g. man 2 open)