Chris writes:
> I'm using a RISCStation board with ARM Linux 2.2.17, and am having
> problems using the Real Time Clock. I wanted to run a routine roughly
> every second, and rather than continually polling gettimeofday() I
> thought I could use the RTC (like it says in
> linux/Documentation/rtc.txt). However although I can read the time from
> it using ioctls, and doing things like 'cat /proc/rtc' and 'cat
> /proc/interrupts' provide appropriate responses, the clock doesn't
> appear to generate any interrupts. This means that when I call read(),
> the program blocks forever.

We don't have a PC-like RTC, therefore /dev/rtc doesn't exist on these
ARM machines (yet).

If you just want to run something every second, why not use:

        while (1) {
                sleep(1);
                do_what_ever_you_want_to();
        }

   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to