source: rtems/c/src/lib/libbsp/powerpc/gen5200/include/tm27.h @ ca680bc5

4.104.114.84.95
Last change on this file since ca680bc5 was ca680bc5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/31/05 at 05:09:26

New (CVS import Thomas Doerfler <Thomas.Doerfler@…>'s
submission).

  • Property mode set to 100644
File size: 819 bytes
Line 
1/*
2 *  tm27.h
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 *
8 *  tm27.h,v 1.2 2004/04/23 04:47:38 ralf Exp
9 */
10
11#ifndef _RTEMS_TMTEST27
12#error "This is an RTEMS internal file you must not include directly."
13#endif
14
15#ifndef __tm27_h
16#define __tm27_h
17
18/*
19 *  Stuff for Time Test 27
20 */
21
22#define MUST_WAIT_FOR_INTERRUPT 0
23
24#define Install_tm27_vector( handler ) \
25   do { \
26        static rtems_irq_connect_data scIrqData = { \
27          PPC_IRQ_SCALL, \
28          (rtems_irq_hdl) handler, \
29          NULL, \
30          NULL, \
31          NULL  \
32        }; \
33        BSP_install_rtems_irq_handler (&scIrqData); \
34   } while(0)
35
36#define Cause_tm27_intr() asm volatile ("sc")
37
38#define Clear_tm27_intr() /* empty */
39
40#define Lower_tm27_intr() /* empty */
41
42#endif
Note: See TracBrowser for help on using the repository browser.