Error in CPM IRQ definiton?

L P plm at iname.com
Tue Sep 23 15:01:50 UTC 2003


Hello,
    I try to follow the way the CICR register is filled in mbx8xx BSP.
    The code looks like (function BSP_CPM_irq_init): 
  ((volatile immap_t *)IMAP_ADDR)->im_cpic.cpic_cicr =
    (CICR_SCD_SCC4 | CICR_SCC_SCC3 | CICR_SCB_SCC2 | CICR_SCA_SCC1) |
    ((BSP_CPM_INTERRUPT/2) << 13) | CICR_HP_MASK;

If I look into definition of BSP_CPM_INTERRUPT in file irq.h I see:
  BSP_CPM_INTERRUPT = BSP_SIU_INT_IRQ_2
while in the same file
  BSP_SIU_INT_IRQ_2 = 5
which seems to be an odd number :-)

Does somebody know why is it so?

Many thanks ahead.

Leon Pollak
 
 
-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers




More information about the users mailing list