123456789101112131415161718192021222324252627282930313233343536 |
- #include "DSP2803x_Device.h" // DSP2803x Headerfile Include File
- #include "DSP2803x_Examples.h" // DSP2803x Examples Include File
- #define RUNLEDSHORT 5000000 //0.2s
- void RunLedControl(void)
- {
- static int32 i = 0;
- int32 RunLedPeriod = 0;
- static int16 State = 0;
- RunLedPeriod = RUNLEDSHORT;
- i++;
- if (i >= RunLedPeriod)
- {
- i = 0;
- if (State == 0)
- {
- State = 1;
- RunLedSet();
- }
- else
- {
- State = 0;
- RunLedClr();
- }
- }
- }
- //===========================================================================
- // No more.
- //===========================================================================
|