I've updated the program to read as thus:
#include <stdio.h>
#include <dev/ppbus/ppi.h>
#include <dev/ppbus/ppbconf.h>
#include <fcntl.h>
int main()
{
int fd;
u_int8_t val;
fd = open("/dev/ppi0", O_RDWR);
val = 0xff;
while(1)
{
ioctl(fd, PPISDATA, &val);
ioctl(fd, PPIGCTRL, &val);
val |= STROBE;
ioctl(fd, PPISCTRL, &val);
val &= ~STROBE;
ioctl(fd, PPISCTRL, &val);
}
}
I have tried to test the output of pins 2 through 9, with a voltmeter, using pin 25 as
the ground pin.
Nothing registered.
I tried again to use the LED, but that did not register anything as well.
I am thinking of putting a 1k ohm resister on the positive side of the LED.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message