Changeset 10 in projects
- Timestamp:
- Sep 2, 2008, 9:19:02 PM (16 years ago)
- Files:
-
- 12 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
puncher/Makefile
r9 r10 1 # 2 # this Makefile is currently (only) Linux specific. 3 # Run ` make -fMakefile.win ` at Windows. 4 # 5 1 6 2 7 CFLAGS = -Wall -
puncher/backend.h
r8 r10 23 23 int puncher_backend_write_byte(PuncherBackend* c, unsigned char byte); 24 24 int puncher_backend_destroy(PuncherBackend* c); 25 #define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); } -
puncher/backend.linux.c
r9 r10 24 24 #include "backend.h" 25 25 #define PARPORT_DEVICE "/dev/parport0" 26 #define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); }27 26 28 27 … … 157 156 if(ioctl(c->parport_fd, PPWDATA, &buf)) 158 157 return -2; 159 time = puncher_backend_mtime(0); 158 159 time = puncher_backend_mtime(0); 160 160 161 161 usleep(10); // take some time...
Note: See TracChangeset
for help on using the changeset viewer.