ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-7400 DIO

To:
Subject: [ts-7000] Re: TS-7400 DIO
From: "Yan Seiner" <>
Date: Mon, 06 Aug 2007 23:46:47 -0000
--- In  Rodrigo Gómez <> wrote:
>
> Hello everybody
>
> Have some of you accessed at DIOs 16 and 17 in the 7400?
>
> I tried to acces to memory map, but the program returned "segmentation
> fault"
> I just tried the address in the manual:
> "0x1200_0001: GPIO direction/data for DIO_16 to DIO_19
>   bit 3:0 - data register
>   bit 7:4 - data direction register ('1' means 'output')"
>
> My code is:
> #include <sys/mman.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <fcntl.h>
> #include <unistd.h>
>
> int main(int argc, char *argv[])
> {
>   int fd = open("/dev/mem", O_RDWR|O_SYNC);
>   int ledPrender;
>   unsigned char *control;
> control = (char *)mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd,
> 0x12000001);

This doesn't look page aligned... 0x12000000 maybe?

> control[0] = 0xF0;
> control[0] = 1;
> }
> I'm runnig with root permisions over debian running in a USB memory
> Any help would be great!
> Thanks
> rgo
>





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>
Admin

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