Changeset 2a514e80 in rtems


Ignore:
Timestamp:
Aug 8, 2011, 12:36:15 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
40ae1fd
Parents:
18a0c56
Message:

2011-08-08 Sebastian Huber <sebastian.huber@…>

  • irq/irq-dispatch.c: New file.
  • irq/irq.c: Moved bsp_interrupt_dispatch() to new file.
  • Makefile.am: Reflect change from above.
Location:
c/src/lib/libbsp/arm/lpc24xx
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/ChangeLog

    r18a0c56 r2a514e80  
     12011-08-08      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * irq/irq-dispatch.c: New file.
     4        * irq/irq.c: Moved bsp_interrupt_dispatch() to new file.
     5        * Makefile.am: Reflect change from above.
     6
    172011-07-21      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • c/src/lib/libbsp/arm/lpc24xx/Makefile.am

    r18a0c56 r2a514e80  
    104104        ../../shared/src/irq-shell.c \
    105105        ../../shared/src/irq-server.c \
    106         irq/irq.c
     106        irq/irq.c \
     107        irq/irq-dispatch.c
    107108
    108109# Console
  • c/src/lib/libbsp/arm/lpc24xx/irq/irq.c

    r18a0c56 r2a514e80  
    88
    99/*
    10  * Copyright (c) 2008, 2009
    11  * embedded brains GmbH
    12  * Obere Lagerstr. 30
    13  * D-82178 Puchheim
    14  * Germany
    15  * rtems@embedded-brains.de
     10 * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
    1611 *
    17  * The license and distribution terms for this file may be found in the file
    18  * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
     12 *  embedded brains GmbH
     13 *  Obere Lagerstr. 30
     14 *  82178 Puchheim
     15 *  Germany
     16 *  <rtems@embedded-brains.de>
     17 *
     18 * The license and distribution terms for this file may be
     19 * found in the file LICENSE in this distribution or at
     20 * http://www.rtems.com/license/LICENSE.
    1921 */
    2022
     
    4749    return LPC24XX_IRQ_PRIORITY_VALUE_MIN - 1U;
    4850  }
    49 }
    50 
    51 void bsp_interrupt_dispatch(void)
    52 {
    53   /* Read current vector number */
    54   rtems_vector_number vector = VICVectAddr;
    55 
    56   /* Enable interrupts in program status register */
    57   uint32_t psr = arm_status_irq_enable();
    58 
    59   /* Dispatch interrupt handlers */
    60   bsp_interrupt_handler_dispatch(vector);
    61 
    62   /* Restore program status register */
    63   arm_status_restore(psr);
    64 
    65   /* Acknowledge interrupt */
    66   VICVectAddr = 0;
    6751}
    6852
Note: See TracChangeset for help on using the changeset viewer.