---- Original Message ----
From: "Ӷ 刘"
To:
Sent: Thursday, May 10, 2007 6:41 PM
Subject: [lpc2000] LPC2368 with VIC
> I am a rookie of lpc2000.I read the code of the
Http demo
> currently,which downloaded from the nxp website.when i come to the
> irq.c file for MCB2300,I find a function named "install_irq" is
> differ from the same function in the irq.c file for MCB 2100.The
> difference puzzled me .I don't know why?Any suggestion is very
> appreciated.
hello,everybody.
I am a rookie of lpc2000.I read the code of the Http demo currently,which
downloaded from the nxp website.when i come to the irq.c file for MCB2300,I find
a function named "install_irq" is differ from the same function in the irq.c
file for MCB 2100.The difference puzzled me .I don't know why?Any
suggestion is very appreciated.
Both code are shown below.
install_irq ----MCB2300
/******************************************************************************
** Function name: install_irq
**
** Descriptions: Install interrupt handler
** parameters: Interrupt number, interrupt handler address,
** interrupt priority
** Returned value: true or false, return false if IntNum is out of range
**
******************************************************************************/
DWORD install_irq( DWORD IntNumber, void *HandlerAddr, DWORD Priority )
{
DWORD *vect_addr;
DWORD *vect_cntl;
irq.c ----MCB2100
/******************************************************************************
** Function name: install_irq
**
** Descriptions: Install interrupt handler
** The max VIC size is 16, but, there are 32 interrupt
** request inputs. Not all of them can be installed into
** VIC table at the same time.
** The order of the interrupt request installation is
** first come first serve.
** parameters: Interrupt number and interrupt handler address
** Returned value: true or false, when the table is full, return false
**
******************************************************************************/
DWORD install_irq( DWORD IntNumber, void *HandlerAddr )
{
DWORD i;
DWORD *vect_addr;
DWORD *vect_cntl;