To: | |
---|---|
Subject: | [ts-7000] Re: TS 7200 serial port at full duplex |
From: | "khouryelie" <> |
Date: | Wed, 23 Jan 2013 08:53:55 -0000 |
Thanks everyone turns out my 485 to 232 cable was not working and this program does work int main(void) { int fd; volatile unsigned char *base; fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd == -1) { perror("Error opening file for writing"); } base = (unsigned char *)mmap(0,getpagesize(),PROT_READ|PROT_WRITE,MAP_SHARED,fd,0x22C00000); if (base == MAP_FAILED) { perror ("mmap"); return 1; } *base = 0x01; close(fd); } again thanks a lot for your help :) ------------------------------------ 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/ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ts-7000] Crosscompiling to TS-8900-4700, Petr Štetiar |
---|---|
Next by Date: | [ts-7000] Baudrate Error, khouryelie |
Previous by Thread: | [ts-7000] Re: TS 7200 serial port at full duplex, Harold |
Next by Thread: | [ts-7000] auto boot from sd card without the ts-752 board., Jon L |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU