To: | |
---|---|
Subject: | [ts-7000] need help reading GPIOs or DIOs pins logic level |
From: | "yanniepa" <> |
Date: | Fri, 17 Oct 2008 07:08:07 -0000 |
Hello, I would like to be able to change the logic level of a few IOs by either writing to GPIOs pins or reading their state level. I used this sample code : int fd = open("/dev/mem", O_RDWR|O_SYNC); char *gpioregs; gpioregs = (char *)mmap(o,4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x12c00000); gpioregs[0] = 0xff; gpioregs[2] = 0x12; //1 on DIO_1 and DIO_4 and zero on others could someone help me with that ? I tried this and I see no changes on the outputs levels on DIO_1 and DIO_4. I hope someone can help. Thanks Yan~ ------------------------------------ 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: | [ts-7000] Re: How can i use/manipulate FPGA in the TS7800??, Damir Dzemidzic |
---|---|
Next by Date: | [ts-7000] Stale Lock on ttyAM0, ts7300 |
Previous by Thread: | [ts-7000] Redboot and NOR, Matthieu Crapet |
Next by Thread: | [ts-7000] Re: need help reading GPIOs or DIOs pins logic level, pekalo1 |
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