| ??? 11/01/02 07:58 Read: times |
#31813 - RE: KEIL: How to send a table to a function |
Hello Andy, and thanks for your answer.
I've made a mistake when writing my sample above. The real variable definition is : xdata U8 picture[] = {....}; So the type is correctly defined. Sorry for getting you to the wrong way. I've wrote it into a header file because the datas are a picture to display on a graphic LCD and I would to group all these kinds of datas in a same file. When replacing the 'xdata' by 'code', my software is correctly operating. Moreover, it seems to be better to put it in code but I still don't understand why it shouldn't work as I've previously done, i.e., with picture defined in xdata. When calling my function, I'm sending the pointer to this 'picture'. I've tried the folowing syntax : - Display (picture); - Display (&picture); but the result is the same. I was thinking that putting my definition in a header file would make it as a global variable. I'm surely wrong somewhere on the use of C langage, but I don't see where... Could light me ? Thanks Stephane |
| Topic | Author | Date |
| KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table to a function | 01/01/70 00:00 | |
| RE: KEIL: How to send a table - James | 01/01/70 00:00 | |
| RE: KEIL: A-men Andy | 01/01/70 00:00 | |
RE: KEIL: global variables | 01/01/70 00:00 |



