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?

  1. 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

Question relating to:

1 Answer

11 years, 3 months ago.

Hello I have answer my self. I must creaded the instants global "File *fp;" Globalfile !!

Accepted Answer

Great

posted by Bharath S 16 Jun 2014