DevKit8500D/A User Manual - DMCS Pages for Students
DevKit8500D/A User Manual - DMCS Pages for Students
DevKit8500D/A User Manual - DMCS Pages for Students
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4) At this time, the screen will play a video clip.<br />
For detailed in<strong>for</strong>mation please reference DVSDK TI main page, or<br />
TMS320DM3730_Software_Developers_Guide.PDF document.<br />
3.9 The Development Of Application<br />
This section mainly introduces to development of application programs, and illustrates the general<br />
process of development of application programs with cases.<br />
Development example of LED application program<br />
1) To Edit code<br />
led_acc.c source code: control three LED lamps on the development board to flicker in a way of<br />
accumulator.<br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#define LED1 "/sys/class/leds/user_ledb/brightness"<br />
#define LED2 "/sys/class/leds/user_led1/brightness"<br />
#define LED3 "/sys/class/leds/user_led2/brightness"<br />
int main(int argc, char *argv[])<br />
{<br />
int f_led1, f_led2, f_led3;<br />
unsigned char i = 0;<br />
unsigned char dat1, dat2, dat3;<br />
if((f_led1 = open(LED1, O_RDWR)) < 0){<br />
printf("error in open %s",LED1);<br />
78