hi all
i have a question that i want to do an experment that i want to write
a progrme to make a flasher on 8-leds connected to 8-bit pc/104 pins
i write this code but that not work
plz any one help me
my second question about the cureent on pc/104 pins that when it output
#include<unistd.h>
#include<sys/mman.h>
#include<fcntl.h>
int main()
{
volatile unsigned int *PFDR;
int i;
unsigned char * start ;
int fd=open("/dev/mem",O_RDWR);
start=mmap(0,getpagesize(),PROT_READ|PROT_WRITE,MAP_SHARED,fd,0x11e00000);
PFDR=(unsigned int*)(start+0x00);
*PFDR=0x00;
for(i=0;i<10;i++)
{
*PFDR=0xff;
sleep(2);
*PFDR=0x00;
sleep(2);
}
close(fd);
return 0;
}
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|