This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: I2C for RTC
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Navya S Kamath <navya at coreel dot com>
- Cc: eCos discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 12 Dec 2007 16:00:15 +0000
- Subject: [ECOS] Re: I2C for RTC
- Openpgp: id=A5FB74E6
- References: <20071212081800.DE4883FFF@jifvik.dyndns.org>
Navya S Kamath wrote:
> Hi All,
>
> I would like to use I2C using GPIO 7 and 8 on IXP425 to access RTC through
> redboot. I have included I2C package. What are the things to be taken care?
NB, this was misaddressed - please check your addressee before you send. It
isn't ecos-discuss-owner!
Secondly, to answer the question, the I2C package provides I2C
infrastructure only. It does not provide a hardware driver. You need to
write an I2C driver and then a wallclock driver that uses the I2C
interface. I suggest starting at the I2C package documentation, and looking
at the existing m68k i2c hardware driver example.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------ Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss