/I2C_Telemetry/trunk/fat16.h |
---|
8,7 → 8,7 |
// |
//________________________________________________________________________________________________________________________________________ |
#define FILE_MAX_OPEN 2 // The number of files that can accessed simultaneously. |
#define FILE_MAX_OPEN 3 // The number of files that can accessed simultaneously. |
#define SEEK_SET 0 |
#define SEEK_CUR 1 |
#define SEEK_END 2 |
/I2C_Telemetry/trunk/main.c |
---|
64,7 → 64,6 |
unsigned char ActiveParamSet = 3; |
unsigned int CountGpsProcessedIn5Sec = 0,CountNewGpsDataIn5Sec = 0, FreqGpsProcessedIn5Sec = 0, FreqNewGpsDataIn5Sec = 0; |
void PrintLine(void) |
{ |
printf("\n\r==================================="); |
117,14 → 116,19 |
void TestFileWrite(void) |
{ |
signed char x[] = "/abcdee.txt\0"; |
File_t* f = 0; |
signed char gregname[12]; |
printf("\r\n%s",x); |
sprintf(gregname, "abc.txt"); |
/* |
f = fopen_(name, 'w'); |
uart_putchar(gregname[0]); |
printf("\r\nWriting File: %s", gregname); |
f = fopen_(gregname, 'w'); |
if(f!= NULL) |
{ |
printf("ok"); |
139,7 → 143,7 |
else |
{ |
printf("failed"); |
}*/ |
} |
} |
/I2C_Telemetry/trunk/makefile |
---|
130,7 → 130,7 |
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
OPT = s |
OPT = 2 |
#OPT = 2 |
########################################################################################################## |