Hi I am writing a program for a file transfer from the EZ board to a PC through RS232 via UART in c.Below is the program but when i complied it i get the errors as line 14: cc0020: error: identifier "pDMA7_PERIPHERAL_MAP" is undefined *pDMA7_PERIPHERAL_MAP=0x7000; ........... i have used the same syntax as in the example codes....Does anyone has any sample code that i can use..any suggestions on the code too........ #include<stdio.h> #include <defbf533.h> void main(void) { FILE *fptr; fptr=fopen("test.txt","wr"); *pDMA7_PERIPHERAL_MAP=0x7000; *pUART_GCTL=0x1; *pUART_LCR=0x0000; *pUART_IER=0x0003; *pDMA7_CONFIG=0x1000; *pDMA7_START_ADDR=fptr; *pDMA7_X_COUNT; *pDMA7_X_MODIFY=0x1; *pUART_LCR=0x0080; *pUART_DLL=0x001D; *pUART_DLH=0x0000; *pUART_LCR=0x0003; *pDMA7_CONFIG=0x1001; } Thanks __________________________________ |
|
UART transfer
Started by ●September 26, 2003
Reply by ●September 26, 20032003-09-26
At 09:25 AM 9/26/03 -0700, sriram K wrote: >line 14: cc0020: error: identifier >"pDMA7_PERIPHERAL_MAP" is > undefined > *pDMA7_PERIPHERAL_MAP=0x7000; >........... >i have used the same syntax as in the example >codes....Does anyone has any sample code that i can >use..any suggestions on the code too........ > >#include<stdio.h> >#include <defbf533.h> What happens if you change that last include to #include <cdefBF533.h> ? |
|
Reply by ●September 26, 20032003-09-26
I believe what Walt suggested would work. If you are using C you need to include cdefBF533.h The h file you are using is meant for assembly routines. Regards MB Walt: Sorry, the last mail went just to you. --- Walt Gribben <> wrote: > At 09:25 AM 9/26/03 -0700, sriram K wrote: > > >line 14: cc0020: error: identifier > >"pDMA7_PERIPHERAL_MAP" is > > undefined > > *pDMA7_PERIPHERAL_MAP=0x7000; > >........... > >i have used the same syntax as in the example > >codes....Does anyone has any sample code that i can > >use..any suggestions on the code too........ > > > >#include<stdio.h> > >#include <defbf533.h> > > What happens if you change that last include to > > #include <cdefBF533.h> > > ? > > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of this message will receive > your answer. You need to do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > To Post: Send an email to > > To Leave: Send an email to > Archives: http://groups.yahoo.com/group/adsp > > Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/ ________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com |