Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: rtc alarm on H300

rtc alarm on H300

From: victor rajewski <askvictor_at_gmail.com>
Date: Mon, 9 Apr 2007 22:25:26 +1000

Hi everybody,

I want to resurrect the alarm plugin I started on last year. At that
time a kernel-level alarm system was being developed. Looking through
the source I've found alarm wake-up capabilities for the PCF50605
(used in the ipod) but not in the PCF50606 (used in the H300). As I
understand it, these are just about the same chip? So should copying
the alarm code from rtc_pcf50605.c to rtc_pcf50606.c work? Are there
any risks in playing with this that might brick my player?

I also noticed that the RTC read and write datetime functions for the
50606 change the IRQ level before the operation (and restore
afterwards), but the funcs for the 50605 don't. Any ideas why? Would I
need to do this for all operations on the 50606?

Where is an alarm handled if the player is already switched on when it occurs?

Also, the set/get alarm functions only set the hour and minute. I was
envisaging a more flexible system using an arbitrary datetime.
Thoughts on changing this?

Cheers,

vik
Received on 2007-04-09

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy