Ignore:
Timestamp:
Nov 26, 2018, 2:44:25 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
06331e4
Parents:
c1864a0a
git-author:
Sebastian Huber <sebastian.huber@…> (11/26/18 14:44:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/27/18 07:06:53)
Message:

bsps/sparc: Add and use <grlib_impl.h>

Reduce copy and paste.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/pci/gr_rasta_spw_router.c

    rc1864a0a ra7267241  
    2222#include <bsp.h>
    2323#include <rtems/bspIo.h>
    24 #include <rtems/score/isrlock.h> /* spin-lock */
    2524#include <pci.h>
    2625
     
    3433#include <bsp/gr_rasta_spw_router.h>
    3534
    36 /* map via rtems_interrupt_lock_* API: */
    37 #define SPIN_DECLARE(lock) RTEMS_INTERRUPT_LOCK_MEMBER(lock)
    38 #define SPIN_INIT(lock, name) rtems_interrupt_lock_initialize(lock, name)
    39 #define SPIN_LOCK(lock, level) rtems_interrupt_lock_acquire_isr(lock, &level)
    40 #define SPIN_LOCK_IRQ(lock, level) rtems_interrupt_lock_acquire(lock, &level)
    41 #define SPIN_UNLOCK(lock, level) rtems_interrupt_lock_release_isr(lock, &level)
    42 #define SPIN_UNLOCK_IRQ(lock, level) rtems_interrupt_lock_release(lock, &level)
    43 #define SPIN_IRQFLAGS(k) rtems_interrupt_lock_context k
    44 #define SPIN_ISR_IRQFLAGS(k) SPIN_IRQFLAGS(k)
     35#include <grlib_impl.h>
    4536
    4637/* Determines which PCI address the AHB masters will access, it should be
Note: See TracChangeset for help on using the changeset viewer.