Вт мар 20, 2018 20:31:52
Ср мар 21, 2018 11:48:31
// процедура записи файла, дописать в конец файла
if ((status=fs_lseek(fs_file.size,1))==0) { //FA_WRITE
#asm("nop")
/* write some text to the file,
without the NULL string terminator sizeof(data)-1 */
if ((status=fs_write(text,sizeof(text)))==0)
printf("%u bytes written of %u%u Bt\r\n",sizeof(text)-1, fs_file.size / 1000, fs_file.size % 1000);
#asm("nop")
else
/* an error occured, display it and stop */
printf("%u no bytes no written of \r\n");
} else {
/* an error occured, display it and stop */
printf("File no_size %u bytes\r\n",sizeof(text)-1);
}
// конец процедуры записи
Ср мар 21, 2018 16:14:35
// процедура записи файла, дописать в конец файла
if ((status=fs_lseek(fs_file.size,1))==0) { //FA_WRITE
#asm("nop")
/* write some text to the file,
without the NULL string terminator sizeof(data)-1 */
if ((status=fs_write(text,sizeof(text)))==0)
printf("%u bytes written of %u%u Bt\r\n",sizeof(text)-1, fs_file.size / 1000, fs_file.size % 1000);
#asm("nop")
else
/* an error occured, display it and stop */
printf("%u no bytes no written of \r\n");
} else {
/* an error occured, display it and stop */
printf("File no_size %u bytes\r\n",sizeof(text)-1);
}
// конец процедуры записи
Ср мар 21, 2018 17:06:59
Ср мар 21, 2018 17:52:31