Changeset 5981c8ca in rtems


Ignore:
Timestamp:
Jan 18, 2019, 10:29:08 AM (4 months ago)
Author:
Jiri Gaisler <jiri@…>
Branches:
master
Children:
9b2b389
Parents:
411c297
git-author:
Jiri Gaisler <jiri@…> (01/18/19 10:29:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/19 11:49:58)
Message:

grlib: use rtems_interrupt_handler_install()

Update #3678.

Location:
bsps/shared/grlib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/grlib/ascs/grascs.c

    r411c297 r5981c8ca  
    131131                the associated semaphore
    132132*/
    133 static rtems_isr ASCS_irqhandler(rtems_vector_number v) {
     133static rtems_isr ASCS_irqhandler(void *v) {
    134134
    135135  if(cfg->regs->sts & GRASCS_STS_TCDONE) {
     
    272272
    273273  /* Register interrupt routine */
    274   set_vector(ASCS_irqhandler,irq+0x10,2);
     274  rtems_interrupt_handler_install(irq, "grascs",
     275                  RTEMS_INTERRUPT_SHARED,
     276                  ASCS_irqhandler, NULL);
    275277 
    276278  return 0;
  • bsps/shared/grlib/can/satcan.c

    r411c297 r5981c8ca  
    153153}
    154154
    155 static rtems_isr satcan_interrupt_handler(rtems_vector_number v)
     155static rtems_isr satcan_interrupt_handler(void *v)
    156156{
    157157        unsigned int irq;
     
    666666
    667667        /* Register interrupt handler */
    668         set_vector(satcan_interrupt_handler, d.irq+0x10, 2);
     668        rtems_interrupt_handler_install(d.irq, "satcan",
     669                        RTEMS_INTERRUPT_SHARED,
     670                        satcan_interrupt_handler, NULL);
    669671
    670672        return RTEMS_SUCCESSFUL;
  • bsps/shared/grlib/drvmgr/ambapp_bus_grlib.c

    r411c297 r5981c8ca  
    189189        )
    190190{
    191         return BSP_shared_interrupt_register(irq, info, isr, arg);
     191        return rtems_interrupt_handler_install(irq, info,
     192                        RTEMS_INTERRUPT_SHARED, isr, arg);
    192193}
    193194
     
    200201        )
    201202{
    202         return BSP_shared_interrupt_unregister(irq, isr, arg);
     203        return rtems_interrupt_handler_remove(irq, isr, arg);
    203204}
    204205
  • bsps/shared/grlib/slink/grslink.c

    r411c297 r5981c8ca  
    237237 * queue.
    238238 */
    239 static rtems_isr SLINK_interrupt_handler(rtems_vector_number v)
     239static rtems_isr SLINK_interrupt_handler(void *v)
    240240{
    241241        unsigned int sts;
     
    408408
    409409        /* Set-up IRQ handling */
    410         set_vector(SLINK_interrupt_handler,irq+0x10,2);
     410        rtems_interrupt_handler_install(irq, "slink",
     411                        RTEMS_INTERRUPT_SHARED,
     412                        SLINK_interrupt_handler, NULL);
    411413       
    412414        return 0;
Note: See TracChangeset for help on using the changeset viewer.