Hi,
I'm trying to recompile something based on Jim Jackson's adc_logger with an
upto date toolchain. I get:
implicit declaration of function 'getpagesize'
the offending line being:
#define IOMMAP(A) (mmap(0,getpagesize(),PROT_READ|PROT_WRITE, MAP_SHARED,
iofd,A))
...
adc_io_cntl=(unsigned char *)IOMMAP(0x22400000);
if ( ! (*adc_io_cntl & 1) ) { return(ENXIO); }
adc_io_cntl=(unsigned char *)IOMMAP(0x10c00000);
adc_io_stat=(unsigned short *)IOMMAP(0x10800000);
adc_io_read=(unsigned short *)IOMMAP(0x10c00000);
This function seems to have disappeared and I'm not sure what to replace it
with since I was not sure why such a large value was used.
Can someone suggest a fix?
TIA.
------------------------------------
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/
|