Ignore:
Timestamp:
Nov 30, 2009, 5:09:41 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
023f1dd9
Parents:
ac7af4a
Message:

Whitespace removal.

Location:
c/src/lib/libcpu/arm/at91rm9200/irq
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/at91rm9200/irq/bsp_irq_asm.S

    rac7af4a r359e537  
    33 *
    44 * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com>
    5  *     
     5 *
    66 *  The license and distribution terms for this file may be
    77 *  found in the file LICENSE in this distribution or at
     
    1313 */
    1414#define __asm__
    15        
     15
    1616        .globl bsp_interrupt_dispatch
    1717bsp_interrupt_dispatch :
     
    2222 */
    2323        ldr     r0, =0xFFFFF100   /* AIC_CTL_BASE + AIC_IVR */
    24         ldr     r1, [r0]               
     24        ldr     r1, [r0]
    2525        str     r1, [r0]          /* write back in case we are using protect */
    2626
     
    3636        ldr   r2, =0xFFFFF130     /* AIC_CTL_BASE + AIC_EIOCR */
    3737        str   r1, [r2]
    38        
     38
    3939        ldmia sp!,{lr}
    4040
  • c/src/lib/libcpu/arm/at91rm9200/irq/bsp_irq_init.c

    rac7af4a r359e537  
    33 *
    44 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
    5  *     
     5 *
    66 *  The license and distribution terms for this file may be
    77 *  found in the file LICENSE in this distribution or at
     
    1818extern void default_int_handler(void);
    1919
    20 /* 
    21  * Interrupt system initialization. Disable interrupts, clear 
     20/*
     21 * Interrupt system initialization. Disable interrupts, clear
    2222 * any that are pending.
    2323 */
  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.c

    rac7af4a r359e537  
    33 *
    44 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
    5  *     
     5 *
    66 *  The license and distribution terms for this file may be
    77 *  found in the file LICENSE in this distribution or at
     
    3535{
    3636    rtems_interrupt_level level;
    37    
     37
    3838    if (!isValidInterrupt(irq->name)) {
    3939        return 0;
    4040    }
    41    
     41
    4242    /*
    43      * Check if default handler is actually connected. If not, issue 
    44      * an error. Note: irq->name is a number corresponding to the 
    45      * sources PID (see the at91rm9200_pid for this mapping).  We 
    46      * convert it to a long word offset to get source's vector register 
     43     * Check if default handler is actually connected. If not, issue
     44     * an error. Note: irq->name is a number corresponding to the
     45     * sources PID (see the at91rm9200_pid for this mapping).  We
     46     * convert it to a long word offset to get source's vector register
    4747     */
    4848    if (AIC_SVR_REG(irq->name * 4) != (uint32_t) default_int_handler) {
    4949        return 0;
    5050    }
    51    
     51
    5252    rtems_interrupt_disable(level);
    53    
     53
    5454    /*
    5555     * store the new handler
    5656     */
    5757    AIC_SVR_REG(irq->name * 4) = (uint32_t) irq->hdl;
    58    
     58
    5959    /*
    6060     * unmask interrupt
    6161     */
    6262    AIC_CTL_REG(AIC_IECR) = 1 << irq->name;
    63    
     63
    6464    /*
    6565     * Enable interrupt on device
     
    6868        irq->on(irq);
    6969    }
    70    
     70
    7171    rtems_interrupt_enable(level);
    72    
     72
    7373    return 1;
    7474}
    7575
    76 /* 
     76/*
    7777 * Remove and interrupt handler
    7878 */
     
    8080{
    8181    rtems_interrupt_level level;
    82  
     82
    8383    if (!isValidInterrupt(irq->name)) {
    8484        return 0;
     
    9797     */
    9898    AIC_CTL_REG(AIC_IDCR) = 1 << irq->name;
    99    
     99
    100100    /*
    101101     * Disable interrupt on device
     
    109109     */
    110110    AIC_SVR_REG(irq->name * 4) = (uint32_t) default_int_handler;
    111    
     111
    112112    rtems_interrupt_enable(level);
    113113
  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.h

    rac7af4a r359e537  
    33 *
    44 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
    5  *     
     5 *
    66 *  The license and distribution terms for this file may be
    77 *  found in the file LICENSE in this distribution or at
     
    2525 * Include some preprocessor value also used by assember code
    2626 */
    27  
     27
    2828#include <rtems.h>
    2929#include <at91rm9200.h>
     
    3636#define AT91RM9200_INT_FIQ        0
    3737#define AT91RM9200_INT_SYSIRQ     1
    38 #define AT91RM9200_INT_PIOA       2 
     38#define AT91RM9200_INT_PIOA       2
    3939#define AT91RM9200_INT_PIOB       3
    4040#define AT91RM9200_INT_PIOC       4
     
    7272/* a vector table */
    7373#define VECTOR_TABLE AIC_SVR_BASE
    74                                                                                            
     74
    7575typedef unsigned char  rtems_irq_level;
    7676typedef unsigned char  rtems_irq_trigger;
     
    118118
    119119/*
    120  * function to get the current RTEMS irq handler for ptr->name. 
     120 * function to get the current RTEMS irq handler for ptr->name.
    121121 */
    122122int BSP_get_current_rtems_irq_handler   (rtems_irq_connect_data* ptr);
Note: See TracChangeset for help on using the changeset viewer.