68
Utilities
Leading
EDGE COMPUTING
7.2
User LED Programming
The eight User LEDs on the front panel display port 80h POST
codes in hexadecimal during boot up. Users can use the POST
codes to identify issues during the BIOS POST process. In default
mode, these eight LEDs display the POST code output to Port 80h
during system bootup (see “User LEDs” on page 24). After the
system is under OS control, the eight User LEDs can be controlled
as user defined LEDs. The LEDs are connected to eight GPIO
pins of the Super I/O IT8786. Users can follow the sample code
below to control the LEDs.
Sample Code
#define IT8786_GPIO_BASE_ADDRESS 0xa00
typedef unsigned char BYTE;
//================================================
//
// Procedure: LedCheckpoint
//
//================================================
VOID LedCheckpoint(IN BYTE Checkpoint)
{
BYTE bData = 0xFF, i;
for(i=0; i<8; i++)
{
if(Checkpoint&(1<<i))
bData &= ~(UINT8)(1<<i);
}
for (i=0; i<8; i++)
{
if(bData &(1<<i))
{
bData2 |= 0x01;
7
6
5
4
3
2
1
Summary of Contents for cPCI-6630 Series
Page 8: ...viii Table of Contents Leading EDGE COMPUTING This page intentionally left blank...
Page 10: ...x List of Figures Leading EDGE COMPUTING This page intentionally left blank...
Page 12: ...xii List of Tables Leading EDGE COMPUTING This page intentionally left blank...
Page 24: ...12 Specifications Leading EDGE COMPUTING This page intentionally left blank...
Page 30: ...18 Functional Description Leading EDGE COMPUTING This page intentionally left blank...
Page 56: ...44 Board Interfaces Leading EDGE COMPUTING This page intentionally left blank...
Page 74: ...62 Driver Installation Leading EDGE COMPUTING This page intentionally left blank...
Page 81: ...Utilities 69 cPCI 6630 if i 7 bData2 bData2 1 outportb IT8786_GPIO_BASE_ADDRESS 0x06 bData...
Page 82: ...70 Utilities Leading EDGE COMPUTING This page intentionally left blank...
Page 119: ...BIOS Setup Utility 107 cPCI 6630 8 4 2 PCH IO Configuration...