Ignore:
Timestamp:
Dec 5, 2013, 4:26:41 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
6eb1733
Parents:
5df9bf6
git-author:
Sebastian Huber <sebastian.huber@…> (12/05/13 16:26:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/16/13 14:15:42)
Message:

bsp/genmcf548x: Add initial values for INTC_ICRn

According to the manual the application must use unique and
non-overlapping level and priority definitions for enabled interrupts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/genmcf548x/console/console.c

    r5df9bf6 r8d292011  
    488488        switch(chan) {
    489489        case 0:
    490             MCF548X_INTC_ICR35 =   MCF548X_INTC_ICRn_IL(PSC0_IRQ_LEVEL) |
    491                                MCF548X_INTC_ICRn_IP(PSC0_IRQ_PRIORITY);
    492490            MCF548X_INTC_IMRH &= ~(MCF548X_INTC_IMRH_INT_MASK35);
    493491            break;
    494492
    495493        case 1:
    496             MCF548X_INTC_ICR34 =   MCF548X_INTC_ICRn_IL(PSC1_IRQ_LEVEL) |
    497                                MCF548X_INTC_ICRn_IP(PSC1_IRQ_PRIORITY);
    498494            MCF548X_INTC_IMRH &= ~(MCF548X_INTC_IMRH_INT_MASK34);
    499495            break;
    500496
    501497        case 2:
    502             MCF548X_INTC_ICR33 =   MCF548X_INTC_ICRn_IL(PSC2_IRQ_LEVEL) |
    503                                MCF548X_INTC_ICRn_IP(PSC2_IRQ_PRIORITY);
    504498            MCF548X_INTC_IMRH &= ~(MCF548X_INTC_IMRH_INT_MASK33);
    505499            break;
    506500
    507501        case 3:
    508             MCF548X_INTC_ICR32 =   MCF548X_INTC_ICRn_IL(PSC3_IRQ_LEVEL) |
    509                                MCF548X_INTC_ICRn_IP(PSC3_IRQ_PRIORITY);
    510502            MCF548X_INTC_IMRH &= ~(MCF548X_INTC_IMRH_INT_MASK32);
    511503            break;
Note: See TracChangeset for help on using the changeset viewer.