gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > RTC: trading corrections for help ;)

#154977 - sverx - Wed Apr 23, 2008 3:05 pm

Hi there once more...
I'm still struggling with that RTC alarm: I can get the IRQ if I set alarm 1 to that mode where the IRQ is fired once per minute, but I still can't get the IRQ when I set a specific time for the alarm and that time comes :(

So I was reading into the libnds\include\nds\arm7\clock.h (and clock.c) and I found these defines that -I think- are wrong (swapped)

Code:
#define READ_INT_REG2      0x6A
#define WRITE_INT_REG2     0x6B

#define READ_CLOCK_ADJUST_REG  0x6C
#define WRITE_CLOCK_ADJUST_REG 0x6D

#define READ_FREE_REG      0x6E
#define WRITE_FREE_REG     0x6F


because the LSB (edit: was 'MSB', excuse me...) should be 0x1 when READ and 0x0 when WRITE.

Now the trade ;) ... does somebody can help me with that topic?

Thanks :)