Kontron KTAM3874-pITX User Manual
Page 57

KTD-S0057-I
Page 53 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
10.4.2 UART Display Interface
The last possible interface of the graphic module from Electronic Assembly represents the standard UART
interface with 115.2 kBaud, 8 data bits, 1 stop bit and no parity. Please notice that this draft only serves for
demonstration purposes but not for real applications.
Note: Please perform a RESET before you execute the test program.
Below you will find the already known varied sourcecode (needs root rights).
/* UART test program for
* Electronic Assembly graphic module eDIP128-6
*
* Copyright (c) 2013 Kontron Technology A/S
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*/
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <termios.h>
#include <linux/types.h>