I am working on AT91SAM9263 arm based board. I am in the process of writing
RTC driver for it. I am using DS1337s chip as my rtc. It is connected via
I2C(two wire) interface. I have a i2c driver in my board which is up and
running completely. But developing the entire driver from scratch seems to
take time. I could see the rtc stub driver in the public directory. Whether
anyone built rtc driver in wince using this chipset?. Apologize me for
mentioning linux here. Linux is providing ds1337s driver with its kernel.
Whether wince is giving such kind of stuffs for any standard rtc chip like
ds1337s? Please guide me if someone has worked on this rtc chip on wince...
Thanks in advance..
--
Ramesh.c
Innovate Software Solutions.
Bangalore.
--
Luca Calligaris
www.eurotech.it
"Rameshchandra" <Ramesh...@discussions.microsoft.com> ha scritto nel
messaggio news:A583E525-8EEA-47E0...@microsoft.com...
> You probably can avoid writing a driver for the RTC chip: you can
> implement the HW access in OEMSetRealTime, OEMGetRealTime,
> OEMSetAlarmTime in the OAL; if the I2C driver
> accesses other devices you need to sync the operation beteween
> the driver and the OAL. The chip is quite simple, so if you
> already have the primitives to R/W on the I2C bus you shouldn't
> spend much time for it
You can avoid to use I2C each time OEMGetRealTime is called.
Usually you can read the external RTC via I2C at OS startup (inside
OEMInit), so you don't have to care about I2C sharing issues, and use
that value to initialize the microprocessor own internal RTC or one of
its timers.
OEMGetRealTime could simply read it without the need to sync and
access a slow I2C connection.
If you need to sync the two RTC (maybe the internal RTC isn't very
accurate) you can do that inside a "dummy" driver that spin its own
thread and read the external I2C clock using your standard I2C driver.
OEMSetRealTime should write to the external I2C controller or provide
some kind of "wake-up" for an upper level driver that can perform this
operation using your standard I2C driver.
--
Valter Minute
www.fortechembeddedlabs.it
Training, support and development for Windows CE
(the reply address of this message is invalid)
Other OMAP based BSPs say OMAP2430 or OMAP1030 dose implment a stand alone
RTC driver and communite with OAL with Event and Kernel IOCTLs but these
code may not be available in regualr CE BSP but only for Windows Mobile
Adaption Kit.
"Valter Minute" <v_a_l_t_e_r.m_i_n_u_t_e@g_m_a_i_l.com> wrote in message
news:Xns9B0E645B1C3...@207.46.248.16...