[En-Nut-Discussion]Re: PHAT + mmc on Ethernut 1.3g
Per Eklund
70eklund at telia.com
Tue Aug 15 19:55:07 CEST 2006
Now I got append to work. It looks like this:
printf("Open for append...\n");
fp = fopen("PHAT0:/simple.txt", "a");
_seek(_fileno(fp), _filelength(_fileno(fp)), 0);
fprintf(fp, "Third line in this file\n");
fprintf(fp, "Forth line in this file\n");
fclose(fp);
Without the _seek the two new lines will start from the beginning of the file.
the HTTP-server works too now.
When I have tested httpd before it worked with a "default page" (http://192.168.1.159/)
Now I have to use the full path http://192.168.1.159/index.html
So now I can confirm that phat and mmc works on ethernut 1.3g too with a new devicedriver.
More information about the En-Nut-Discussion
mailing list