board without RTC

Joachim Denil joachim.denil at gmail.com
Sat May 13 23:10:45 EST 2006


Hello,

Can someone tell me what the following functions should do in case there is
no RTC on the hardware board. My processor is a 405gpr. Which of these i
must implement. (maybe some code snippets...). I think the most important
one is calibrate_decr for it is necesary to calibrate_delay function.

Thanks...

Joachim Denil
Student


long (*time_init <http://lxr.linux.no/ident?a=ppc;i=time_init>)(void);
int (*set_rtc_time <http://lxr.linux.no/ident?a=ppc;i=set_rtc_time>)(unsigned
long nowtime);
unsigned long (*get_rtc_time<http://lxr.linux.no/ident?a=ppc;i=get_rtc_time>
)(void);
unsigned char (*rtc_read_val)(int addr<http://lxr.linux.no/ident?a=ppc;i=addr>
);
void (*rtc_write_val)(int addr <http://lxr.linux.no/ident?a=ppc;i=addr>,
unsigned char val <http://lxr.linux.no/ident?a=ppc;i=val>);
void (*calibrate_decr)(void);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060513/11b8f3fe/attachment.htm 


More information about the Linuxppc-embedded mailing list