
20 Jul
2011
20 Jul
'11
2:19 p.m.
Dear Ajay Bhargav,
In message 1499501074.35394.1311158638174.JavaMail.root@ahm.einfochips.com you wrote:
Hi Lei,
I think we make thing complicated here. For GPIO driver, the only structure we need to define is the GPIO register itself, like GPIO_PLR, GPIO_PDR, etc...
I got your point, but lemme show you where the problem is.. GPIO_PLR0 0x0000 GPIO_PLR1 0x0004 GPIO_PLR2 0x0008 GPIO_PLR3 0x0100
till 3 registers its fine... fourth register is way out of league.
In which way? Just because there is a gap between? No problem. Insert a filler element to your struct.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is a nanocentury.
-- Tom Duff, Bell Labs