Ignore:
Timestamp:
Jun 19, 2017, 12:09:28 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ae3e6af8
Parents:
b361cb6c
git-author:
Sebastian Huber <sebastian.huber@…> (06/19/17 12:09:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/20/17 05:42:25)
Message:

bsps: Improve interrupt vector enable/disable API

Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable()
to not return a status code. Add bsp_interrupt_assert() and use it to
validate the vector number in the vector enable/disable implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    rb361cb6c rc6810c8  
    154154}
    155155
    156 static int timerIsOn(const rtems_raw_irq_connect_data *used)
    157 {
    158   return bsp_interrupt_vector_enable(used->idtIndex - BSP_IRQ_VECTOR_BASE);
    159 }
    160 
    161156static rtems_raw_irq_connect_data timer_raw_irq_data = {
    162157  BSP_PERIODIC_TIMER + BSP_IRQ_VECTOR_BASE,
     
    164159  timerOn,
    165160  timerOff,
    166   timerIsOn
     161  NULL
    167162};
    168163
Note: See TracChangeset for help on using the changeset viewer.