RAM 6.0 BUX II Series Guía de usuario Pagina 66

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 189
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 65
VxWorks
BSP Developer’s Guide, 6.0
58
On a well-designed board, the LEDs are addressable without having too many
processor or board registers configured and without very much additional bus
configuration. The LED code should be simple. The following is an example of C
source code for a simple LED system (you may also use LED code from your
reference BSP):
/* sysLed.c - Wind River 8260 User LED driver */
/* Copyright 1984-2003 Wind River Systems, Inc. */
#include "copyright_wrs.h"
/*
modification history
--------------------
01a,30jul01,g_h created from T2 SBC8260/sysLib.c
*/
/*
DESCRIPTION
This module contains the LED driver.
INCLUDES: sysLed.h
*/
/* includes */
#include "vxWorks.h"
#include "wrSbc8260.h"
#include "sysLed.h"
#ifdef INCLUDE_SYSLED
/* locals */
LOCAL UINT8 sysLed;
/*************************************************************
*
* sysLedInit - Initialize LEDs.
*
* This routine initializes the LED variable to zero and clears
* all LEDs.
*
* RETURNS: N/A.
*
* SEE ALSO: sysLedOn(), sysLedOff(), sysLedControl().
*/
void sysLedInit
(
void
)
{
sysLed = 0;
/*
Vista de pagina 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 188 189

Comentarios a estos manuales

Sin comentarios