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 > Getting the RTC

#84687 - knight0fdragon - Wed May 24, 2006 5:28 am

is this all that is needed to get the current time off the DS

ARM7:
rtcGetTime((uint8 *)ct);
BCDToInteger((uint8 *)&(ct[1]), 7);
for(u32 i=0; i<sizeof(ct); i++) {
IPC->curtime[i] = ct[i];
}

then access the IPC on ARM9
_________________
http://www.myspace.com/knight0fdragonds

MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206