EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

IAR LPC2468 getting started detail description

Started by aliarm7 September 21, 2010
i Everybody

I have bought an evaluation board for LPC2468 from Embeddedartist
and using IAR workbench as compiler and flash programing .

I am new to ARM7 and for practice started with getting started example of IAR system .

I understood most of the main.c program , but I want to know is any description of line by line of files for this example .

for example what is the description of

VIC_SetVectoredIRQ(Timer0IntrHandler,0,VIC_TIMER0);

what is the usage of

T0MR0 = SYS_GetFpclk(TIMER0_PCLK_OFFSET)/(TIMER0_TICK_PER_SEC);

and how it works ?

or what is

__enable_interrupt();
it is obvious that enables the interrupt but
where is this function ?
I did not find this function in any library or include files ?
How does compiler know what to to do with this function .

So I need detail description of whole program .
It is Great if anyonecan help me about this subject .

Thanks a lot in advance
A.J

An Engineer's Guide to the LPC2100 Series

Hi Richard

Thanks a lot for your hint , I started to read the manual and making
some experiment to be familiar with my evaluation board .May be
I face with new subject and will post it here to get some help from you and others .

Have a nice time
ali

--- In l..., FreeRTOS Info wrote:
>
>
> On 19/09/2010 15:32, aliarm7 wrote:
> > i Everybody
> >
> > I have bought an evaluation board for LPC2468 from Embeddedartist and
> > using IAR workbench as compiler and flash programing .
> >
> > I am new to ARM7 and for practice started with getting started
> > example of IAR system .
> >
> > I understood most of the main.c program , but I want to know is any
> > description of line by line of files for this example .
> >
> > for example what is the description of
> >
> > VIC_SetVectoredIRQ(Timer0IntrHandler,0,VIC_TIMER0);
>
> Right click on it, then select "go to definition" - where it will
> probably tell you (although the function name does give it away somewhat).
>
>
> > what is the usage of
> >
> > T0MR0 = SYS_GetFpclk(TIMER0_PCLK_OFFSET)/(TIMER0_TICK_PER_SEC);
> >
> > and how it works ?
>
> Again - right click and select "go to definition" and read the
> description. You will probably need to read the clocking section of the
> user manual too.
>
> >
> > or what is
> >
> > __enable_interrupt(); it is obvious that enables the interrupt but
> > where is this function ? I did not find this function in any library
> > or include files ? How does compiler know what to to do with this
> > function .
>
> Read the manual for the compiler. It is an intrinsic function.
>
>
> >
> > So I need detail description of whole program . It is Great if
> > anyonecan help me about this subject .
>
>
> You have the compiler manual already (presumably) - to that add the user
> manual for the LPC device which is a free download, and read the header
> files - and you have what you are looking for. There is no short cut if
> you want to truly understand what is going on.
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for Microcontrollers. More than 7000 downloads per month.
>
> + http://www.SafeRTOS.com
> Certified by T as meeting the requirements for safety related systems.
>


The 2024 Embedded Online Conference