ts-7000
[Top] [All Lists]

Re: [ts-7000] Working with /dev/rtc

To:
Subject: Re: [ts-7000] Working with /dev/rtc
From: Mike Magee <>
Date: Thu, 24 Aug 2006 15:30:10 -0700
Okay.  I didn't get any response about using ioctl(), so I'd like to ask
a broader question.

When I cat the rtc in /proc I get this:

:root# cat /proc/driver/rtc
rtc_time        : 22:19:50
rtc_date        : 2006-08-24
rtc_epoch       : 1900
alarm           : **:**:**
DST_enable      : no
BCD             : yes
24hr            : yes
square_wave     : no
alarm_IRQ       : no
update_IRQ      : no
periodic_IRQ    : no
periodic_freq   : 0
batt_status     : okay

Does anyone know how to set up the periodic IRQ and periodic frequency
so that a user space program can block on it?

My rtc device looks like this:
:root# ls -l /dev/misc/rtc
crw-rw-r--  1 root root 10, 135 Dec 31  1969 /dev/misc/rtc

Any pointers at all would really help.

On Tue, 2006-08-22 at 11:25 -0700, Mike Magee wrote:
> I am unable to communicate with /dev/rtc using the ioctl() function
> and I was wondering if someone could help. 
> 
> I am using the default kernel that comes with the development kit
> (2.4.26-ts11) and I have the SD Card Socket option and the Battery
> Backed Real Time Clock option installed.
> -- 
> Mike Magee <>
> Remtrol Inc.

-- 
Mike Magee <>
Remtrol Inc.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

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