Kontron KTAM3874-pITX Manual de usuario

Busca en linea o descarga Manual de usuario para Hardware Kontron KTAM3874-pITX. Kontron KTAM3874-pITX User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 293
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - KTD-S0057-I

The pulse of innovation KTAM3874/pITX KTD-S0057-I

Pagina 2 - » Table of Contents «

KTD-S0057-I Page 6 U-Boot Setup KTAM3874/pITX Software Guide Examples: Brightness: 0 minimal value = 0V or Brightness: 255 maximal value

Pagina 3

KTD-S0057-I Page 96 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide init = 1; while (1) { if (! init) { err

Pagina 4

KTD-S0057-I Page 97 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* it is possible that the initial buffer cannot s

Pagina 5 - 1 User Information

KTD-S0057-I Page 98 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static int async_loop (snd_pcm_t *handle, signed short *

Pagina 6 - 1.7 Technical Support

KTD-S0057-I Page 99 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Transfer method - asynchronous notification + direct

Pagina 7 - 2 U-Boot Setup

KTD-S0057-I Page 100 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide first = 0; err = snd_pcm_start (handle);

Pagina 8 - 2.3 Display Menu

KTD-S0057-I Page 101 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide data.samples = NULL; /* we do not

Pagina 9

KTD-S0057-I Page 102 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Transfer method - direct write only */ static int di

Pagina 10 - 2.4 Devices Menu

KTD-S0057-I Page 103 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (err < 0) { printf ("

Pagina 11

KTD-S0057-I Page 104 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Transfer method - direct write only using mmap_write

Pagina 12 - 2.6 Defaults Command

KTD-S0057-I Page 105 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide printf ("Usage: pcm [OPTION]... [FILE]...\n"

Pagina 13 - 2.9 ShowDID Command

KTD-S0057-I Page 7 U-Boot Setup KTAM3874/pITX Software Guide 2.4.5 CAN Port 0 The selection is limited to the enable respectively disable featur

Pagina 14 - 3 U-Boot Environment

KTD-S0057-I Page 106 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide snd_pcm_hw_params_alloca (&hwparams); snd_pcm_sw_

Pagina 15

KTD-S0057-I Page 107 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide case 'o': for (format = 0; forma

Pagina 16 - DisplayID

KTD-S0057-I Page 108 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if ((err = set_hwparams (handle, hwparams, transfer_m

Pagina 17 - Timing Parameter Definitions

KTD-S0057-I Page 109 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The following sourcecode introduces a simple program fo

Pagina 18 - Example:

KTD-S0057-I Page 110 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void set_wav_header (wav_header *w) { strcpy (

Pagina 19 - Specification (VESA

KTD-S0057-I Page 111 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if ((err = snd_pcm_hw_params_any (capture_handle, hw_

Pagina 20 - 4.3.3 LCD Panel Selection

KTD-S0057-I Page 112 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide set_wav_header (&wavhdr); if (write_wav_file (wa

Pagina 21 - Windows

KTD-S0057-I Page 113 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The sourcecode below shows an example for mixer program

Pagina 22

KTD-S0057-I Page 114 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide while (elem) { elem_name = snd_mixer_selem_get_na

Pagina 23 - Serial Download

KTD-S0057-I Page 115 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int main (void) { mixer_dev mixdev; playb_vol pbvol;

Pagina 24 - 5 U-Boot Bootloader

KTD-S0057-I Page 8 U-Boot Setup KTAM3874/pITX Software Guide The submenu for UART2 and UART4 allows the selection between:  gpio  uart and the

Pagina 25

KTD-S0057-I Page 116 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.12 Graphic Programming 10.12.1 X11TM X11TM realizes

Pagina 26 - 5.2 Ethernet Bootloader

KTD-S0057-I Page 117 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define BTN_CANCEL 1 #define BTN_FONT1 "9x15bol

Pagina 27 - Bootloader

KTD-S0057-I Page 118 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide XSetForeground (sys.disp, sys.gc, btn.linecol1); XDr

Pagina 28

KTD-S0057-I Page 119 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static int check_button (XSystem sys, XButton btn, int

Pagina 29 - 5.4 MMC Bootloader

KTD-S0057-I Page 120 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide XEvent e; Pixmap pict; XSystem xsys; XButton xbtn;

Pagina 30 - 6 Debian

KTD-S0057-I Page 121 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide xsys.gc = gc; XSelectInput (disp, win, ButtonPressM

Pagina 31 - 6.8 Screensaver

KTD-S0057-I Page 122 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide xbtn.backcol = backcol.pixel; xbtn.

Pagina 32 - 6.9 Sysfs Support

KTD-S0057-I Page 123 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide XAllocNamedColor (disp, cmap, BTN_BLUECOL, &

Pagina 33 - 7 Ethernet Switch

KTD-S0057-I Page 124 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x80,0xFF,0xFF,0xFF,0xA0,0x06,0x00,0x00,0x00,0x0

Pagina 34 - 8 Kernel Boot from SPI

KTD-S0057-I Page 125 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

Pagina 35

KTD-S0057-I Page 9 U-Boot Setup KTAM3874/pITX Software Guide 2.7 Save Command This is one of the most important sub-commands. Without this calli

Pagina 36 - Programming Examples (Debian

KTD-S0057-I Page 126 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

Pagina 37

KTD-S0057-I Page 127 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x80,0x11,0x3E,0xFF,0x00,0x20,0x0F,0x00,0x01,0x80,0x0

Pagina 38 - ATTENTION

KTD-S0057-I Page 128 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x1F,0x00,0xF8,0x79,0x60,0x00,0x00,0x00,0x00,0x00,0x0

Pagina 39 - Interface Examples

KTD-S0057-I Page 129 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0x00,0x00,0xF0,0x1F,0x00,0x00,0xE0,0xF

Pagina 40

KTD-S0057-I Page 130 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0xFF,0xFF,0xFF,0x9F,0x00,0xFF,0x1F,0x70,0x00,0x00,0xE

Pagina 41

KTD-S0057-I Page 131 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0x00,0x00,0x0

Pagina 42 - Using default values ./spi

KTD-S0057-I Page 132 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0xFF,0x7F,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x3F,0x0

Pagina 43

KTD-S0057-I Page 133 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0xFE,0x03,0x00,0x00,0xE0,0xFF,0xFF,0x0

Pagina 44

KTD-S0057-I Page 134 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

Pagina 45

KTD-S0057-I Page 135 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /******************************************************

Pagina 46

KTD-S0057-I Page 10 U-Boot Environment KTAM3874/pITX Software Guide Example: DisplayID data: ---------------------------- Type I Timing Data

Pagina 47

KTD-S0057-I Page 136 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide {.val = 11, .name = "mediumpurple" },

Pagina 48

KTD-S0057-I Page 137 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (! XMatchVisualInfo (disp, 0, 32, TrueColor, &

Pagina 49

KTD-S0057-I Page 138 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide XMapWindow (disp, win); index = 0; while (! quit

Pagina 50

KTD-S0057-I Page 139 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (! colors[index].val) index = 0; } }

Pagina 51

KTD-S0057-I Page 140 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.12.2 Cairo Cairo designates a vector-based 2D graphi

Pagina 52 - Display Interface

KTD-S0057-I Page 141 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The following NEW packages will be installed: binutil

Pagina 53

KTD-S0057-I Page 142 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <X11/Xlib.h> #include <X11/Xutil.h>

Pagina 54

KTD-S0057-I Page 143 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define STAT_TXT "Six cairo samples successfull

Pagina 55

KTD-S0057-I Page 144 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void draw_cairo_object2 (XSystem sys, cairo_t *c

Pagina 56

KTD-S0057-I Page 145 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void draw_cairo_object4 (XSystem sys, cairo_t *c

Pagina 57

KTD-S0057-I Page 11 U-Boot Environment KTAM3874/pITX Software Guide ramdisk_file=ramdisk.gz rootpart=2 scriptaddr=0x80900000 scriptfile=boot.scr

Pagina 58

KTD-S0057-I Page 146 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE); ca

Pagina 59 - 10.5 Timer Example

KTD-S0057-I Page 147 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void draw_x11_object (XSystem *sys) { XColor co

Pagina 60

KTD-S0057-I Page 148 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide disp = XOpenDisplay (NULL); if (disp == (Display *)

Pagina 61

KTD-S0057-I Page 149 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide sys->disp = disp; sys->win = win; sys->cm

Pagina 62

KTD-S0057-I Page 150 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide cr = cairo_create (surface); if (cairo_status (cr)

Pagina 63

KTD-S0057-I Page 151 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide When using static libraries there is one limitation: th

Pagina 64 - 10.6 GPIO Example

KTD-S0057-I Page 152 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /******************************************************

Pagina 65

KTD-S0057-I Page 153 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide XAllocNamedColor (sys.disp, sys.cmap, OBJ2_COL1, &a

Pagina 66

KTD-S0057-I Page 154 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void draw_cairo_object2 (XSystem sys, cairo_t *c

Pagina 67

KTD-S0057-I Page 155 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void destroy_X11_window (XSystem sys) { if (sys

Pagina 68

KTD-S0057-I Page 12 VESA® DisplayIDTM KTAM3874/pITX Software Guide 4 VESA® DisplayIDTM 4.1 LCD/LVDS Technology Overview 4.1.1 Detailed Timing De

Pagina 69

KTD-S0057-I Page 156 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.12.3 GTK+ 3.x GTK+ represents a multi-platform Graphi

Pagina 70

KTD-S0057-I Page 157 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide libpcrecpp0 libpixman-1-dev libpng12-dev libpthread-s

Pagina 71 - break;

KTD-S0057-I Page 158 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The following demonstration program realizes two standa

Pagina 72

KTD-S0057-I Page 159 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define ID_COLOR 1 #define ID_FONT 2 #define ID_R

Pagina 73 - 10.7 Watchdog Example

KTD-S0057-I Page 160 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define CAIRO_TXT "Cairo" #define MSG_INIT

Pagina 74

KTD-S0057-I Page 161 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void font_dialog (void) { GtkWidget *fontwgt;

Pagina 75 - 10.8 CAN Bus Examples

KTD-S0057-I Page 162 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide dialog = gtk_dialog_new_with_buttons (RADIUS_TITLE, (

Pagina 76

KTD-S0057-I Page 163 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static gboolean cairo_draw_event (GtkWidget *parent, ca

Pagina 77

KTD-S0057-I Page 164 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static GtkWidget * create_infobar (GtkWidget *parent) {

Pagina 78

KTD-S0057-I Page 165 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static void create_button (GtkWidget *parent, GtkWidget

Pagina 79

KTD-S0057-I Page 13 VESA® DisplayIDTM KTAM3874/pITX Software Guide Example 2: SHARP LQ190E1LW01 (double pixel clock) Data sheet specifications (no

Pagina 80

KTD-S0057-I Page 166 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide file = gtk_menu_item_new_with_label (MENU_FILE); op

Pagina 81

KTD-S0057-I Page 167 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static GtkWidget * create_font_area (GtkWidget *parent,

Pagina 82

KTD-S0057-I Page 168 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide gtk_init (&argc, &argv); window = gtk_wind

Pagina 83 - 10.8.3 CAN Wiring

KTD-S0057-I Page 169 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide This theme provides only one additional GTK3 entry name

Pagina 84 - 10.9 Backlight Example

KTD-S0057-I Page 170 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.12.4 QtTM 4.8 QtTM is a cross-platform environment an

Pagina 85

KTD-S0057-I Page 171 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Machine Architecture */ #ifndef QT_BOOTSTRAPPED /*#

Pagina 86

KTD-S0057-I Page 172 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Some minor deviations from the original sourcecode are

Pagina 87

KTD-S0057-I Page 173 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide File configdialog.h (header with QtTM license see &apos

Pagina 88

KTD-S0057-I Page 174 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QHBoxLayout *horizontalLayout = new QHBoxLayout; hor

Pagina 89

KTD-S0057-I Page 175 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide File pages.h (header with QtTM license see 'main.c

Pagina 90

KTD-S0057-I Page 14 VESA® DisplayIDTM KTAM3874/pITX Software Guide 4.1.2 24 Bit Color Mapping Tips The double pixel clock or 24-bit color depth c

Pagina 91

KTD-S0057-I Page 176 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QVBoxLayout *mainLayout = new QVBoxLayout; mainLayou

Pagina 92

KTD-S0057-I Page 177 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QCheckBox *releasesCheckBox = new QCheckBox (tr (&quo

Pagina 93

KTD-S0057-I Page 178 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide and the associated screen output: File mice.qrc: &l

Pagina 94

KTD-S0057-I Page 179 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <QtGui/QtGui> #include <math.h> #i

Pagina 95

KTD-S0057-I Page 180 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QRectF boundingRect () const; QPainterPath shape ()

Pagina 96

KTD-S0057-I Page 181 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QPainterPath Mouse::shape () const { QPainterPath path

Pagina 97

KTD-S0057-I Page 182 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (angleToCenter < Pi && angleToCenter

Pagina 98

KTD-S0057-I Page 183 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide // Add some random movement if (dangerMice.size ()

Pagina 99

KTD-S0057-I Page 184 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Three out of five views look as follows: File animat

Pagina 100 - KTAM3874/pITX Software Guide

KTD-S0057-I Page 185 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERV

Pagina 101

KTD-S0057-I Page 15 VESA® DisplayIDTM KTAM3874/pITX Software Guide 4.2 EDID 1.3 Specification (VESA®) The EDID (Extended Display Identification Da

Pagina 102

KTD-S0057-I Page 186 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide // Values for (int i = 0; i < items.count (); ++i

Pagina 103

KTD-S0057-I Page 187 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide trans = rootState->addTransition (randomButton, SI

Pagina 104

KTD-S0057-I Page 188 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QPainterPath shape () const { QPainterPath path;

Pagina 105

KTD-S0057-I Page 189 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide class View : public QGraphicsView { public: View (QGr

Pagina 106

KTD-S0057-I Page 190 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide One possible Makefile might look like this: DEFINES =

Pagina 107

KTD-S0057-I Page 191 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS

Pagina 108

KTD-S0057-I Page 192 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void resizeGL (int width, int height); void mousePr

Pagina 109

KTD-S0057-I Page 193 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide GLWidget::~GLWidget () { makeCurrent (); glDeleteLis

Pagina 110

KTD-S0057-I Page 194 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide glLightfv (GL_LIGHT0, GL_POSITION, lightPos); glEnab

Pagina 111

KTD-S0057-I Page 195 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void GLWidget::mouseMoveEvent (QMouseEvent *event) {

Pagina 112

User Information KTAM3874/pITX Software Guide Table of Contents» Table of Contents « 1 User Information ...

Pagina 113

KTD-S0057-I Page 16 VESA® DisplayIDTM KTAM3874/pITX Software Guide 4.3.2 DisplayIDTM Restrictions Depending on the graphic controller not all featu

Pagina 114

KTD-S0057-I Page 196 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide for (j = 0; j <= toothCount; ++j) { GLdo

Pagina 115

KTD-S0057-I Page 197 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide glEnd (); glEndList (); return list; } void GLWidg

Pagina 116

KTD-S0057-I Page 198 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide private: void createActions (); void createMenus ()

Pagina 117

KTD-S0057-I Page 199 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide xSlider = createSlider (SIGNAL (xRotationChanged (int

Pagina 118

KTD-S0057-I Page 200 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void MainWindow::createActions () { renderIntoPixmapA

Pagina 119

KTD-S0057-I Page 201 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void MainWindow::setPixmap (const QPixmap &pixmap)

Pagina 120 - 10.12 Graphic Programming

KTD-S0057-I Page 202 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide For integration you can use the User Interface Compiler

Pagina 121

KTD-S0057-I Page 203 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide class Ui_Dialog { public: QGroupBox *groupBox_2; QFor

Pagina 122

KTD-S0057-I Page 204 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void retranslateUi(QDialog *Dialog) { Dialog->s

Pagina 123

KTD-S0057-I Page 205 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <QtGui/QtGui> #include "ui_dialog.h

Pagina 124

KTD-S0057-I Page 17 VESA® DisplayIDTM KTAM3874/pITX Software Guide 4.3.4 DisplayIDTM Windows® Tool The DisplayIDTM parameter can be modified with t

Pagina 125

KTD-S0057-I Page 206 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void Dialog::showTime () { QTime time = QTime::curren

Pagina 126

KTD-S0057-I Page 207 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The figure already implies the absence of the Groupbox

Pagina 127

KTD-S0057-I Page 208 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The second variant applies the Main Window template. Th

Pagina 128

KTD-S0057-I Page 209 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void setupUi(QMainWindow *MainWindow) { if (MainWin

Pagina 129

KTD-S0057-I Page 210 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide namespace Ui { class MainWindow: public Ui_MainWindow

Pagina 130

KTD-S0057-I Page 211 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.12.5 QtTM Quick 1.x / QML QtTM Quick 1.x (QUICK = Qt

Pagina 131

KTD-S0057-I Page 212 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QtTM Quick requires two additional special files: qmlap

Pagina 132

KTD-S0057-I Page 213 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide public: enum ScreenOrientation { ScreenOrientationL

Pagina 133

KTD-S0057-I Page 214 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide QString QmlApplicationViewerPrivate::adjustPath (const

Pagina 134

KTD-S0057-I Page 215 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide switch (orientation) { case ScreenOrientationLockPo

Pagina 135

KTD-S0057-I Page 18 VESA® DisplayIDTM KTAM3874/pITX Software Guide The DisplayIDTM Editor saves the parameters in a intermediate file format. The

Pagina 136

KTD-S0057-I Page 216 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The following picture gives an impression of the progra

Pagina 137

KTD-S0057-I Page 217 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file unde

Pagina 138

KTD-S0057-I Page 218 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Rectangle { id: webBrowser property string urlString

Pagina 139

KTD-S0057-I Page 219 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide anchors { right: parent.right rightMargin: 14

Pagina 140

KTD-S0057-I Page 220 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide File FlickableWebView.qml (header with QtTM license see

Pagina 141

KTD-S0057-I Page 221 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide } return url } url: fixUrl (webBrowser.url

Pagina 142

KTD-S0057-I Page 222 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide doZoom (zf, clickX * zf, clickY * zf) } }

Pagina 143

KTD-S0057-I Page 223 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide PropertyAction { id: finalX target: fli

Pagina 144 - 10.12.2 Cairo

KTD-S0057-I Page 224 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Item { width: parent.width height: 20 Text

Pagina 145

KTD-S0057-I Page 225 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide header.urlChanged = false } onUrlCha

Pagina 146

KTD-S0057-I Page 19 VESA® DisplayIDTM KTAM3874/pITX Software Guide Serial Download The following example demonstrates a serial download via the ymo

Pagina 147

KTD-S0057-I Page 226 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide action: webView.stop image: "pics/edit-d

Pagina 148

KTD-S0057-I Page 227 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide function size () { var nh, ny if (container.o

Pagina 149

KTD-S0057-I Page 228 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide states: State { name: "visible" when:

Pagina 150

KTD-S0057-I Page 229 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Rectangle { anchors.bottom: bg.bottom x: 18 hei

Pagina 151

KTD-S0057-I Page 230 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide For debugging purposes this approach maintains good res

Pagina 152

KTD-S0057-I Page 231 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide and change the content of the Makefile. CXX := arm-li

Pagina 153

KTD-S0057-I Page 232 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <QtGui/QApplication> #include "qmla

Pagina 154

KTD-S0057-I Page 233 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The next two pictures demonstrate subfunctions: One

Pagina 155

KTD-S0057-I Page 234 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Some minor deviations from the original sourcecode are

Pagina 156

KTD-S0057-I Page 235 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide In contrast to the example which uses the subdirectorie

Pagina 157

KTD-S0057-I Page 20 U-Boot Bootloader KTAM3874/pITX Software Guide 5 U-Boot Bootloader TI® requires a two-part U-Boot version. The ROM code load

Pagina 158

KTD-S0057-I Page 236 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Image { source: "images/stripes.png"

Pagina 159

KTD-S0057-I Page 237 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide PropertyChanges { target: photoGridView

Pagina 160 - 10.12.3 GTK+ 3.x

KTD-S0057-I Page 238 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Connections { target: imageDetails onClosed:

Pagina 161 - -I/usr/include/gtk-3.0 \

KTD-S0057-I Page 239 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide transitions: Transition { NumberAnimation {

Pagina 162

KTD-S0057-I Page 240 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide text: container.text style: Text.Raised styleColo

Pagina 163

KTD-S0057-I Page 241 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Item { width: 77 height: 77 anchors.center

Pagina 164

KTD-S0057-I Page 242 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide ParentChange { target: whiteRect

Pagina 165

KTD-S0057-I Page 243 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide MouseArea { anchors.fill: wrapper onClicked: ph

Pagina 166

KTD-S0057-I Page 244 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Column { spacing: 10 anchors { left:

Pagina 167

KTD-S0057-I Page 245 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Text { color: "white" elide:

Pagina 168

KTD-S0057-I Page 21 U-Boot Bootloader KTAM3874/pITX Software Guide Note: Do not start the transmission before all eight C's are visible

Pagina 169

KTD-S0057-I Page 246 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (bigImage.height * slider.value > flick

Pagina 170

KTD-S0057-I Page 247 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide anchors { bottom: parent.bottom bottomM

Pagina 171

KTD-S0057-I Page 248 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide transitions: Transition { SequentialAnimation {

Pagina 172

KTD-S0057-I Page 249 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Rectangle { x: 6 y: 4 width: 77

Pagina 173

KTD-S0057-I Page 250 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Text { text: photoDate width: par

Pagina 174 - 10.12.4 Qt

KTD-S0057-I Page 251 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide gradient: Gradient { GradientStop { posi

Pagina 175

KTD-S0057-I Page 252 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide File ScrollBar.qml (header with QtTM license see '

Pagina 176

KTD-S0057-I Page 253 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide File Slider.qml (header with QtTM license see 'mai

Pagina 177

KTD-S0057-I Page 254 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Rectangle { id: handle smooth: true y: 2 widt

Pagina 178

KTD-S0057-I Page 255 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide BorderImage { source: "images/titlebar.sci&quo

Pagina 179

KTD-S0057-I Page 22 U-Boot Bootloader KTAM3874/pITX Software Guide The next step is to load the final U-Boot version (normally named 'u-boo

Pagina 180

KTD-S0057-I Page 256 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Button { id: tagButton x: titleBar.width -

Pagina 181

KTD-S0057-I Page 257 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Item { id: returnKey Keys.onReturnPress

Pagina 182

KTD-S0057-I Page 258 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide BorderImage { source: "images/titlebar.sci&quo

Pagina 183

KTD-S0057-I Page 259 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.13 Interprocess Communication (Root/User) Many examp

Pagina 184

KTD-S0057-I Page 260 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define CMD_SIZE 4 #define CMD_WDIO "wdio&quo

Pagina 185

KTD-S0057-I Page 261 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <fcntl.h> #include <string.h> #inc

Pagina 186

KTD-S0057-I Page 262 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (!strcasecmp (param1, WD_TRIG) && fd_wd)

Pagina 187

KTD-S0057-I Page 263 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (write (fd_tmp, param3, strlen (param3)) != strl

Pagina 188

KTD-S0057-I Page 264 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (!gp_dir) { if (read (fd_io, str, sizeof (

Pagina 189

KTD-S0057-I Page 265 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide while (read (fifo_rd, buff_rd, RD_SIZE) > 0) {

Pagina 190

KTD-S0057-I Page 23 U-Boot Bootloader KTAM3874/pITX Software Guide 5.3 SPITM Bootloader This chapter describes the programming of the SPITM flas

Pagina 191

KTD-S0057-I Page 266 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <linux/limits.h> #include "fifo.h&q

Pagina 192

KTD-S0057-I Page 267 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide gpio 11 open in Enable (export) GPIO11 as input gpio

Pagina 193

KTD-S0057-I Page 268 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int main (void) { int fifo_rd, fifo_wr, value; pid_t

Pagina 194

KTD-S0057-I Page 269 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (!strncasecmp (buff_rd, CMD_GPIO, CMD_SIZE)) {

Pagina 195

KTD-S0057-I Page 270 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #! /bin/sh ### BEGIN INIT INFO # Provides: serverd #

Pagina 196

KTD-S0057-I Page 271 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide After the input of sudo rcconf you see the following

Pagina 197

KTD-S0057-I Page 272 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int main (void) { . . if (create_pidfile ()

Pagina 198

KTD-S0057-I Page 273 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide Appendix A: Linux® on microSDTM Card A.1 UbuntuTM 12.04 LT

Pagina 199

KTD-S0057-I Page 274 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide The easiest way to prepare the microSDTM card is to use o

Pagina 200

KTD-S0057-I Page 275 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide The next step involves the copying of the tarball ktam387

Pagina 201

KTD-S0057-I Page 24 U-Boot Bootloader KTAM3874/pITX Software Guide Now the first update part is finished. For the second part type again &apos

Pagina 202

KTD-S0057-I Page 276 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide Thereafter the microSDTM card is ready for use.

Pagina 203

KTD-S0057-I Page 277 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide A.2 UbuntuTM 14.04 LTS The description below is based on:

Pagina 204

KTD-S0057-I Page 278 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide As a next step use the Partition Editor (type 'gpart

Pagina 205

KTD-S0057-I Page 279 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide

Pagina 206

KTD-S0057-I Page 280 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide and finally you should see Therefore, the microSDTM

Pagina 207

KTD-S0057-I Page 281 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide The next step requires the known Disk Utility. Thereaf

Pagina 208

KTD-S0057-I Page 282 Appendix A: Linux® on microSDTM Card KTAM3874/pITX Software Guide ATTENTION In the first release of UbuntuTM 14.04 the Ar

Pagina 209

KTD-S0057-I Page 283 Appendix B: User Space on Onboard Flash KTAM3874/pITX Software Guide Appendix B: User Space on Onboard Flash Requirement: an

Pagina 210

KTD-S0057-I Page 284 Appendix B: User Space on Onboard Flash KTAM3874/pITX Software Guide The easiest way to prepare the onboard flash is to use

Pagina 211

KTD-S0057-I Page 285 Appendix B: User Space on Onboard Flash KTAM3874/pITX Software Guide The same tool allows the extraction of the tgz-file bu

Pagina 212

KTD-S0057-I Page 25 U-Boot Bootloader KTAM3874/pITX Software Guide 5.4 MMC Bootloader For booting from the microSDTM card you have to change som

Pagina 213

KTD-S0057-I Page 286 Appendix B: User Space on Onboard Flash KTAM3874/pITX Software Guide Thereafter shutdown the target board and remove th

Pagina 214

KTD-S0057-I Page 287 Appendix B: User Space on Onboard Flash KTAM3874/pITX Software Guide If you have trouble booting the Kernel please check th

Pagina 215 - Quick 1.x / QML

KTD-S0057-I Page 288 Appendix C: Reference Documents KTAM3874/pITX Software Guide Appendix C: Reference Documents KONTRON Technology A/S cannot g

Pagina 216

KTD-S0057-I Page 289 Appendix D: Document Revision History KTAM3874/pITX Software Guide Appendix D: Document Revision History Revision Date Au

Pagina 217

User Information KTAM3874/pITX Software Guide Table of Contents4 VESA® DisplayIDTM...

Pagina 218

KTD-S0057-I Page 26 DebianTM Linux® BSP KTAM3874/pITX Software Guide 6 DebianTM Linux® BSP 6.1 User Login Arguments For both, serial remote sys

Pagina 219

KTD-S0057-I Page 27 DebianTM Linux® BSP KTAM3874/pITX Software Guide 6.5 CAN Bus Utilities (SocketCAN) The directory /usr/bin contains all nec

Pagina 220

KTD-S0057-I Page 28 DebianTM Linux® BSP KTAM3874/pITX Software Guide 6.9 Sysfs Support Alternative to the KEAPI interface you can use Sysfs to m

Pagina 221

KTD-S0057-I Page 29 Ethernet Switch KTAM3874/pITX Software Guide 7 Ethernet Switch TI®'s AM3874 SoC knows two different Ethernet operating

Pagina 222

KTD-S0057-I Page 30 Kernel Boot from SPITM Flash KTAM3874/pITX Software Guide 8 Kernel Boot from SPITM Flash In some cases it is necessary to pro

Pagina 223

KTD-S0057-I Page 31 Root File System Boot from S-ATA® Drive KTAM3874/pITX Software Guide Thereafter type the following line # sudo dd if

Pagina 224

KTD-S0057-I Page 32 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10 Linux® Programming Examples (DebianTM) 10.1 TI® AM3

Pagina 225

KTD-S0057-I Page 33 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int main (int argc, char **argv) { int fd; void *map_

Pagina 226

KTD-S0057-I Page 34 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (munmap (map_base, MAP_SIZE) == -1) FATAL; close (

Pagina 227

KTD-S0057-I Page 35 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.2 SPITM Interface Examples 10.2.1 SPITM Loopback Test

Pagina 228

User Information KTAM3874/pITX Software Guide Table of Contents10.3 I2CTM Interface Examples...

Pagina 229

KTD-S0057-I Page 36 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide uint8_t rx[ARRAY_SIZE(tx)] = {0, }; struct spi_ioc_tr

Pagina 230

KTD-S0057-I Page 37 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide switch (c) { case 'D': device = opt

Pagina 231

KTD-S0057-I Page 38 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide transfer (fd); close (fd); return ret; } You should

Pagina 232

KTD-S0057-I Page 39 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.2.2 SPITM Display Interface The SPITM interface is wel

Pagina 233

KTD-S0057-I Page 40 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide Now the corresponding test program (needs root rights):

Pagina 234

KTD-S0057-I Page 41 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int init_spi_interface (void) { fd = open (device, O_R

Pagina 235

KTD-S0057-I Page 42 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.3 I2CTM Interface Examples 10.3.1 I2CTM Detection Uti

Pagina 236

KTD-S0057-I Page 43 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define I2C_FUNC_SMBUS_READ_BLOCK_DATA 0x01000000 #defi

Pagina 237

KTD-S0057-I Page 44 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static inline __s32 i2c_smbus_read_byte (int file) { u

Pagina 238

KTD-S0057-I Page 45 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static const struct func all_func[] = { { .value = I2C

Pagina 239

KTD-S0057-I Page 1 User Information KTAM3874/pITX Software Guide 1 User Information 1.1 About This Document This document provides information

Pagina 240

KTD-S0057-I Page 46 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int open_i2c_dev (const int i2cbus, char *filename, cons

Pagina 241

KTD-S0057-I Page 47 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Read address range if present */ if (argc == flag

Pagina 242

KTD-S0057-I Page 48 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.3.2 I2CTM Display Interface The graphic module from El

Pagina 243

KTD-S0057-I Page 49 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) #defi

Pagina 244

KTD-S0057-I Page 50 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide for (i = 0; i < ARRAY_SIZE(tx); i++) { if (i2c

Pagina 245

KTD-S0057-I Page 51 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.4 UART Interface Examples 10.4.1 UART Loopback Test

Pagina 246

KTD-S0057-I Page 52 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide memset (&new_values, 0, sizeof (new_values)); ne

Pagina 247

KTD-S0057-I Page 53 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.4.2 UART Display Interface The last possible interfac

Pagina 248

KTD-S0057-I Page 54 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) /***

Pagina 249

KTD-S0057-I Page 55 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide close (fd); printf ("UART transmission successfu

Pagina 250

KTD-S0057-I Page 2 User Information KTAM3874/pITX Software Guide 1.6 Life Support Policy KONTRON Technology's products are not for use as c

Pagina 251

KTD-S0057-I Page 56 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <errno.h> #include <string.h> #incl

Pagina 252

KTD-S0057-I Page 57 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int open_reg_range (void) { fd = open ("/dev/mem&

Pagina 253

KTD-S0057-I Page 58 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Set PWM mode */ write_timer_reg (TCLR, (read_time

Pagina 254

KTD-S0057-I Page 59 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int main (void) { printf ("\nTIMER test program\n

Pagina 255

KTD-S0057-I Page 60 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.6 GPIO Example An easy way to design an application w

Pagina 256

KTD-S0057-I Page 61 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The following table gives an overview about the numerati

Pagina 257

KTD-S0057-I Page 62 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide The program below generates a square wave (ratio of 1:1)

Pagina 258

KTD-S0057-I Page 63 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int gpio_unexport (int gpio_pin) { int fd_tmp; char st

Pagina 259

KTD-S0057-I Page 64 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int gpio_open_write (int gpio_pin) { char str[128];

Pagina 260

KTD-S0057-I Page 65 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide void gpio_close_read (int gpio_pin) { close (fd [gpio_

Pagina 261

KTD-S0057-I Page 3 U-Boot Setup KTAM3874/pITX Software Guide 2 U-Boot Setup The sense of a special Setup part is to avoid expendable changes in

Pagina 262

KTD-S0057-I Page 66 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide else { printf ("\nCannot open GPIO !\n&qu

Pagina 263

KTD-S0057-I Page 67 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide else { if (write (fd_tmp, EDGE_FALL, sizeof(EDGE_F

Pagina 264

KTD-S0057-I Page 68 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide else { printf ("\nGPIO init error !\n");

Pagina 265

KTD-S0057-I Page 69 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.7 Watchdog Example The watchdog option represents a n

Pagina 266

KTD-S0057-I Page 70 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide for (i = 0; i < WDT_TRIG_TIME; i++) { if (writ

Pagina 267

KTD-S0057-I Page 71 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.8 CAN Bus Examples 10.8.1 CAN Loopback Test Utility

Pagina 268

KTD-S0057-I Page 72 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <net/if.h> #include <sys/types.h> #

Pagina 269

KTD-S0057-I Page 73 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int disable_id_filter (void) { return setsockopt (skt,

Pagina 270

KTD-S0057-I Page 74 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide for (i = 0; i < frame.can_dlc; i++) data[i] = f

Pagina 271

KTD-S0057-I Page 75 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide memset (&data, 0, sizeof (data)); if (recv_can_f

Pagina 272

KTD-S0057-I Page 4 U-Boot Setup KTAM3874/pITX Software Guide 2.3 Display Menu This menu part includes several display settings:  First boot dis

Pagina 273

KTD-S0057-I Page 76 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide  or with (transmit part shortened, 'lo' impl

Pagina 274

KTD-S0057-I Page 77 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide printf ("\nCAN bus test program\n"); /* F

Pagina 275

KTD-S0057-I Page 78 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.8.2 Single CAN Controller Usage You can replace the &

Pagina 276

KTD-S0057-I Page 79 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide for (i = 0; i < frame.can_dlc; i++) data[i] = f

Pagina 277 - on microSD

KTD-S0057-I Page 80 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.9 Backlight Example An easy way to modify the backlig

Pagina 278

KTD-S0057-I Page 81 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int read_bkl_val (int *val) { int fd; char str[8];

Pagina 279

KTD-S0057-I Page 82 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide value = 96; if (! write_bkl_val (value)) printf

Pagina 280

KTD-S0057-I Page 83 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.10 RS485 Interface Example The application programmin

Pagina 281 - 14.04 LTS

KTD-S0057-I Page 84 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (write (fd_tmp, str, strlen (str)) != strlen (str))

Pagina 282

KTD-S0057-I Page 85 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int rts_transmit_control (int tx_enable) { char dev [6

Pagina 283

KTD-S0057-I Page 5 U-Boot Setup KTAM3874/pITX Software Guide 2.3.3 LCD Panel Resolution You have the choice to select a panel resolution with a

Pagina 284

KTD-S0057-I Page 86 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide int rs485_outgoing_msg (void) { char out_str[] = "

Pagina 285

KTD-S0057-I Page 87 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide if (rs485_outgoing_msg ()) { rts_as_gpio_close ()

Pagina 286

KTD-S0057-I Page 88 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide 10.11 Sound Programming with ALSA The following examples

Pagina 287

KTD-S0057-I Page 89 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide #include <stdio.h> #include <getopt.h> #incl

Pagina 288

KTD-S0057-I Page 90 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* verify and prepare the contents of areas */ for (

Pagina 289

KTD-S0057-I Page 91 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide phase += step; if (phase >= max_phase)

Pagina 290

KTD-S0057-I Page 92 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* set the stream rate */ rrate = rate; err = snd_

Pagina 291

KTD-S0057-I Page 93 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide static int set_swparams (snd_pcm_t *handle, snd_pcm_sw_p

Pagina 292

KTD-S0057-I Page 94 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide /* Underrun and suspend recovery */ static int xrun_reco

Pagina 293

KTD-S0057-I Page 95 Linux® Programming Examples (DebianTM) KTAM3874/pITX Software Guide break; /* skip one period */ } p

Modelos relacionados KTAM3874

Comentarios a estos manuales

Sin comentarios