Changeset 10 in projects


Ignore:
Timestamp:
Sep 2, 2008, 9:19:02 PM (11 years ago)
Author:
sven
Message:

I began to build the Windows Punching Backend, using a WINNT User mode dll to perform CPU register read/write operations from user mode. Additionally wrote documentation.

-- Sven @ winXp workstation at Susanne

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
    16
    27CFLAGS = -Wall
  • puncher/backend.h

    r8 r10  
    2323int puncher_backend_write_byte(PuncherBackend* c, unsigned char byte);
    2424int puncher_backend_destroy(PuncherBackend* c);
     25#define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); }
  • puncher/backend.linux.c

    r9 r10  
    2424#include "backend.h"
    2525#define PARPORT_DEVICE "/dev/parport0"
    26 #define PUNCHER_BACKEND_DPRINTF(bla...) { if(c->debug_flag) fprintf(stderr,bla); }
    2726
    2827
     
    157156        if(ioctl(c->parport_fd, PPWDATA, &buf))
    158157                return -2;
    159         time = puncher_backend_mtime(0);
     158
     159    time = puncher_backend_mtime(0);
    160160
    161161        usleep(10); // take some time...
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License