EmbeddedRelated.com
Forums

Crossworks - ctl_set_isr() where is LOWEST_PRIORITY, HIGHEST_PRIORITY etc. defined?

Started by Markus Zingg April 24, 2008
Hi,

> > HIGHEST_PRIORITY equals 1
> > LOWEST_PRIORITY equals 15
>
> Thanks for sheeding light on this. I don't need it anymore cause it's
> easy enough to just use some middle value for my purpose, but out of
> curiosity, I use an LPC2378 based project. Where are the two constants
> then defined?

I'm not sure where you're finding reference to these...

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

An Engineer's Guide to the LPC2100 Series

...oh, and if you want to search the current project:

Click Search > Find and Replace

Set: Find > HIGHEST
Set: Look in > Current Project

Click: Find All

This won't just search the project directory, it will search in your
project. Unfortunately the feature that finds pre-processor symbols and so
on, an enhancement of the source navigator, isn't in V1.

Regards,

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

> -----Original Message-----
> From: l... [mailto:l...] On
> Behalf Of Markus Zingg
> Sent: 25 April 2008 16:51
> To: l...
> Subject: Re: [lpc2000] Re: Crossworks - ctl_set_isr() where is
> LOWEST_PRIORITY, HIGHEST_PRIORITY etc. d
>
> Paul,
>
> Thanks for sheeding light on this. I don't need it anymore cause it's
> easy enough to just use some middle value for my purpose, but out of
> curiosity, I use an LPC2378 based project. Where are the two constants
> then defined?
>
> TIA
>
> Markus
>
> Paul Curtis schrieb:
> >
> > Markus,
> >
> > > I meanwhile found out that:
> > >
> > > HIGHEST_PRIORITY equals 1
> > > LOWEST_PRIORITY equals 15
> >
> > ...for a specific implementation, yes. Each chip has its own idea of
> > priority.
> >
> > > I know now that the value can go from 0 to 15.
> >
> > ...for a specific LPC. Some devices have cascaded VICs. Some have
> "bigger"
> > VICs.
> >
> > > I just wonder why the Crosswork people were choosing 1 as the
> highest
> > value. Maybe we
> > > hear from them? Paul?
> >
> > Because 0 is taken by the CTL timer ISR, see ctl_start_timer in
> LPC210x.c
> > (for instance).
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> >
> > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
> >
> >
>