Kontron KTAM3874-pITX Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Kontron KTAM3874-pITX herunter. Kontron KTAM3874-pITX User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 293
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - KTD-S0057-I

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

Seite 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

Seite 3

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

Seite 4

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

Seite 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 *

Seite 6 - 1.7 Technical Support

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

Seite 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);

Seite 8 - 2.3 Display Menu

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

Seite 9

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

Seite 10 - 2.4 Devices Menu

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

Seite 11

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

Seite 12 - 2.6 Defaults Command

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

Seite 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

Seite 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_

Seite 15

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

Seite 16 - DisplayID

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

Seite 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

Seite 18 - Example:

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

Seite 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_

Seite 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

Seite 21 - Windows

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

Seite 22

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

Seite 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;

Seite 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

Seite 25

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

Seite 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

Seite 27 - Bootloader

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

Seite 28

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

Seite 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;

Seite 30 - 6 Debian

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

Seite 31 - 6.8 Screensaver

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

Seite 32 - 6.9 Sysfs Support

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 45

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

Seite 46

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

Seite 47

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

Seite 48

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

Seite 49

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

Seite 50

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

Seite 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

Seite 52 - Display Interface

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

Seite 53

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

Seite 54

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

Seite 55

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

Seite 56

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

Seite 57

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

Seite 58

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

Seite 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

Seite 60

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

Seite 61

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

Seite 62

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

Seite 63

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

Seite 64 - 10.6 GPIO Example

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

Seite 65

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

Seite 66

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

Seite 67

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

Seite 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

Seite 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

Seite 70

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

Seite 71 - break;

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

Seite 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

Seite 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

Seite 74

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

Seite 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, (

Seite 76

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

Seite 77

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

Seite 78

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

Seite 79

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

Seite 80

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

Seite 81

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

Seite 82

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

Seite 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

Seite 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

Seite 85

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

Seite 86

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

Seite 87

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

Seite 88

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

Seite 89

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

Seite 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

Seite 91

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

Seite 92

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

Seite 93

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

Seite 94

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

Seite 95

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

Seite 96

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

Seite 97

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

Seite 98

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

Seite 99

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

Seite 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

Seite 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

Seite 102

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

Seite 103

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

Seite 104

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

Seite 105

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

Seite 106

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

Seite 107

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

Seite 108

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

Seite 109

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

Seite 110

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

Seite 111

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

Seite 112

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

Seite 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

Seite 114

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

Seite 115

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

Seite 116

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

Seite 117

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

Seite 118

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

Seite 119

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

Seite 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

Seite 121

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

Seite 122

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

Seite 123

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

Seite 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

Seite 125

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

Seite 126

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

Seite 127

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

Seite 128

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

Seite 129

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

Seite 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

Seite 131

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

Seite 132

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

Seite 133

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

Seite 134

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

Seite 135

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

Seite 136

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

Seite 137

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

Seite 138

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

Seite 139

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

Seite 140

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

Seite 141

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

Seite 142

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

Seite 143

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

Seite 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

Seite 145

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

Seite 146

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

Seite 147

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

Seite 148

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

Seite 149

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

Seite 150

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

Seite 151

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

Seite 152

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

Seite 153

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

Seite 154

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

Seite 155

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

Seite 156

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

Seite 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

Seite 158

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

Seite 159

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

Seite 160 - 10.12.3 GTK+ 3.x

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

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

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

Seite 162

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

Seite 163

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

Seite 164

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

Seite 165

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

Seite 166

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

Seite 167

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

Seite 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

Seite 169

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

Seite 170

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

Seite 171

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

Seite 172

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

Seite 173

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

Seite 174 - 10.12.4 Qt

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

Seite 175

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

Seite 176

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

Seite 177

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

Seite 178

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

Seite 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

Seite 180

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

Seite 181

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

Seite 182

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

Seite 183

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

Seite 184

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

Seite 185

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

Seite 186

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

Seite 187

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

Seite 188

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

Seite 189

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

Seite 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

Seite 191

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

Seite 192

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

Seite 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

Seite 194

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

Seite 195

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

Seite 196

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

Seite 197

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 202

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

Seite 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:

Seite 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

Seite 205

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

Seite 206

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 216

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

Seite 217

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

Seite 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

Seite 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

Seite 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

Seite 221

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

Seite 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

Seite 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

Seite 224

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

Seite 225

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

Seite 226

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

Seite 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

Seite 228

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

Seite 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

Seite 230

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

Seite 231

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

Seite 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

Seite 233

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

Seite 234

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

Seite 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

Seite 236

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

Seite 237

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

Seite 238

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

Seite 239

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

Seite 240

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

Seite 241

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

Seite 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

Seite 243

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

Seite 244

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

Seite 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

Seite 246

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

Seite 247

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

Seite 248

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

Seite 249

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

Seite 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

Seite 251

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

Seite 252

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

Seite 253

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

Seite 254

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

Seite 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

Seite 256

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

Seite 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)

Seite 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

Seite 259

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

Seite 260

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

Seite 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

Seite 262

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

Seite 263

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

Seite 264

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

Seite 265

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

Seite 266

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

Seite 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

Seite 268

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

Seite 269

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

Seite 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

Seite 271

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

Seite 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

Seite 273

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

Seite 274

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

Seite 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 &

Seite 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

Seite 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

Seite 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];

Seite 279

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

Seite 280

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

Seite 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))

Seite 282

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

Seite 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

Seite 284

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

Seite 285

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

Seite 286

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

Seite 287

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

Seite 288

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

Seite 289

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

Seite 290

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

Seite 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

Seite 292

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

Seite 293

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

Verwandte Modelle: KTAM3874

Kommentare zu diesen Handbüchern

Keine Kommentare