I got it to work. For those who may be new to the TS-7800, compiling the
following
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <assert.h>
#include <string.h>
#include <signal.h>
int main( int argc, char **argv )
{
volatile unsigned char *start;
volatile unsigned int *LED;
int fd = open( "/dev/mem", O_RDWR|O_SYNC );
assert(fd != -1);
start = mmap( 0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd,
0xE8000000 );
LED = ( unsigned int * )( start + 0x8 );
*LED = 0x40000000;
close( fd );
return 0;
}
with gcc LED.c -o LED
and running
sudo ./LED
(or just ./LED if you're root)
Will turn on the green LED.
------------------------------------
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/
|