From ce1909a893f3a4c799eb2f876b78cfb0cf16cbf6 Mon Sep 17 00:00:00 2001 From: burg Date: Thu, 23 Sep 2004 22:27:30 +0000 Subject: Plannification d'ajout d'un systeme d'enregistrement --- i/serialplot/serialplot.c | 1 + i/serialplot/serialplot_io.c | 29 +++++++++++++++++++++++++++++ i/serialplot/serialplot_io.h | 3 ++- 3 files changed, 32 insertions(+), 1 deletion(-) (limited to 'i/serialplot') diff --git a/i/serialplot/serialplot.c b/i/serialplot/serialplot.c index ec412e2..2e59e71 100644 --- a/i/serialplot/serialplot.c +++ b/i/serialplot/serialplot.c @@ -2,6 +2,7 @@ * faire un système d'échelle plus lisible : partiellement fait * intégrer la lecture serie dans le programme : OK * plus de protection sur l'option t : + * Faudrait rajouté: une fonction de sauvegarde */ #include diff --git a/i/serialplot/serialplot_io.c b/i/serialplot/serialplot_io.c index fa45433..56b4fd0 100644 --- a/i/serialplot/serialplot_io.c +++ b/i/serialplot/serialplot_io.c @@ -52,3 +52,32 @@ write_serial(int fd,char *command) { return fputs(command,fdopen(fd,"r+")); } + + +void +find_name(char *filename) +{ + +//#include +//#include +//#include +// +//int +//main (void) +//{ +// DIR *dp; +// struct dirent *ep; +// +// dp = opendir ("./"); +// if (dp != NULL) +// { +// while (ep = readdir (dp)) +// puts (ep->d_name); +// (void) closedir (dp); +// } +// else +// perror ("Couldn't open the directory"); +// +// return 0; +//} +} diff --git a/i/serialplot/serialplot_io.h b/i/serialplot/serialplot_io.h index f7780c6..1dd9a31 100644 --- a/i/serialplot/serialplot_io.h +++ b/i/serialplot/serialplot_io.h @@ -9,6 +9,7 @@ #include #include #include +#include #define BAUDRATE B115200 @@ -17,5 +18,5 @@ extern struct termios oldconf; int init_serial (char *cvalue); void close_serial(int fd); int write_serial(int fd,char *command); - +void find_name(char *filename); #endif -- cgit v1.2.3