This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LPC2XXX interrupt_acknowledge


OK, here is the patch, which is slightly different to that below. I've also fixed a missed comment and added a brief explanation of how to use the HAL_PLF_HARDWARE_INIT() patch that Sergei supplied - mainly because I know that I'll be scratching my head at some point trying to remember how to use it. It should all be de-tabified.

Hope this is OK. It compiles for my LPC2129 board, although I can't actually run the code and compiles and runs on our LPC2294 system.

Thanks,

Andy..

----- Original Message ----- From: "Andrew Lunn" <andrew@lunn.ch>
To: "Andy Jackson" <andy@grapevinetech.co.uk>
Cc: "Andrew Lunn" <andrew@lunn.ch>; <ecos-patches@ecos.sourceware.org>; "Sergei Gavrikov" <sg@belvok.com>
Sent: Monday, May 08, 2006 12:01 PM
Subject: Re: LPC2XXX interrupt_acknowledge



On Mon, May 08, 2006 at 11:25:34AM +0100, Andy Jackson wrote:
Hi Andrew,

I've just looked at this properly and I think the change should be:

#ifdef CYGHWR_HAL_ARM_LPC2XXX_FAMILY_LPC22XX
   lpc_set_vpbdiv(CYGNUM_HAL_ARM_LPC2XXX_VPBDIV,
                  CYGNUM_HAL_ARM_LPC2XXX_XCLKDIV);
#else
   lpc_set_vpbdiv(CYGNUM_HAL_ARM_LPC2XXX_VPBDIV, 0);
#endif

rather than:

#ifdef CYGHWR_HAL_ARM_LPC2XXX_FAMILY_LPC22XX
   lpc_set_vpbdiv(CYGNUM_HAL_ARM_LPC2XXX_VPBDIV,
                  CYGNUM_HAL_ARM_LPC2XXX_XCLKDIV);
#endif

otherwise VPBDIV isn't set for non LPC22xx platforms. Do you want a patch
for this?

Yes please.


Andrew

Attachment: lpc2xxx_var.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]