LPC2XXX interrupt_acknowledge
Andy Jackson
andy@grapevinetech.co.uk
Mon May 8 16:04:00 GMT 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lpc2xxx_var.patch
Type: application/octet-stream
Size: 3935 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20060508/385895ad/attachment.obj>
More information about the Ecos-patches
mailing list