Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 3 months ago.
How to do?
Hello, here a sample program, I have a question.
How can I say the saveadw(???) what is fp in the routine?
- include "mbed.h"
LocalFileSystem local("local");
volatile int32_t data0[0x200];
void saveadw(fp) { int i; for(i=0;i<512;i++) { fprintf(fp,%ld\r\n",data[i]); } }
int main() { int a =0; FILE *fp = fopen("/local/out.txt", "w"); fprintf(fp, "Here the datas!");
for(a=0;a<0x200) { data0[a]= readadw; } for(a=0;a<10;a++) { saveadw(&fp); } fclose(fp); }
Thanks for your help. Bernd