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/startup/init548x.c

    r5df9bf6 r8d292011  
    7878
    7979void mcf548x_init(void)
    80     {
     80{
     81    size_t i;
     82
    8183#if defined(HAS_LOW_LEVEL_INIT)
    8284    /* set XLB arbiter timeouts */
     
    109111    /* Zero uninitialized data */
    110112    memset(bsp_section_bss_begin, 0, (size_t) bsp_section_bss_size);
     113
     114    for (i = 8; i < RTEMS_ARRAY_SIZE(mcf548x_intc_icr_init_values); ++i) {
     115      volatile uint8_t *icr = &MCF548X_INTC_ICR0;
     116
     117      icr[i] = mcf548x_intc_icr_init_values[i];
     118    }
    111119}
    112120/********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.