User`s guide

Processor Expert Interface
Processor Expert Tutorial
109Targeting MC56F83xx/DSP5685x Controllers
#include "GPIO_C0.h"
#include "GPIO_C1.h"
#include "GPIO_C2.h"
#include "GPIO_C3.h"
#include "GPIO_D6.h"
#include "GPIO_D7.h"
#include "IRQA.h"
#include "IRQB.h"
/* Include shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/*
* Application Description:
* LED program for the 56836 EVM.
*
* Pattern: "Count" from 0 to 63, using LEDs to represent the bits of
the number.
*
* Pressing the IRQA button flips LED order: commands that previously
went to LED1 go to LED6, and so forth.
* Pressing the IRQB button reverses the enabled/disabled LED states.
*
*/
/* global used as bitfield, to remember currently active bits, used to
* enable/disable all LEDs. */
long num = 0;
short IRQA_On,IRQB_On;
/* simple loop makes LED changes visible to the eye */
void wait(int);
voide wait(int count)
{
int i;
for (i=0; i<count; ++i);
}
/*set the given LED */
void setLED(int);
void setLED(int num)
{
if (!IRQA_On)