Motorola Digital dna MSC8101ADS Manual page 12

Table of Contents

Advertisement

Running LEDblinker from Internal SRAM
12
Freescale Semiconductor, Inc.
* FUNCTION NAME: FlashLed
*
* DESCRIPTION: This function flashes the Red LED on the 8260 Board.
*
* EXTERNAL EFFECTS: None
*
* PARAMETERS: GREEN or RED
*
* RETURNS: None
*
*-------------------------------------------------------------------------
-*/
void FlashLed(UWord16 setting)
{
UWord32 jj;
switch(setting)
{
// Flash red LED
case RED:
{
Led(RED);
//for (jj=0; jj < 1000000; jj++); // Wait-use if run from
SRAM
for (jj=0; jj < 10000; jj++);
Flash
Led(OFF);
//for (jj=0; jj < 1000000; jj++); // Wait-use if run from
SRAM
for (jj=0; jj < 10000; jj++);
Flash
break;
}
// Flash green LED
case GREEN:
{
Led(GREEN);
//for (jj=0; jj < 1000000; jj++); // Wait-use if run from
SRAM
for (jj=0; jj < 10000; jj++);
Flash
Led(OFF);
//for (jj=0; jj < 1000000; jj++); // Wait-use if run from
SRAM
for (jj=0; jj < 10000; jj++);
Flash
break;
}
default:
break;
}
} // end FlashLed
For More Information On This Product,
Go to: www.freescale.com
// Wait-use if run from
// Wait-use if run from
// Wait-use if run from
// Wait-use if run from

Advertisement

Table of Contents
loading

Table of Contents