RTEMS 7.0-rc1
Loading...
Searching...
No Matches
tm27.h
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
3/*
4 * @file
5 * @ingroup powerpc_mpc8260ads
6 * @brief Implementations for interrupt mechanisms for Time Test 27
7 */
8
9/*
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef _RTEMS_TMTEST27
16#error "This is an RTEMS internal file you must not include directly."
17#endif
18
19#ifndef __tm27_h
20#define __tm27_h
21
23
24/*
25 * Stuff for Time Test 27
26 */
27
28#define MUST_WAIT_FOR_INTERRUPT 0
29
30#define Install_tm27_vector( handler ) \
31 do { \
32 static rtems_irq_connect_data scIrqData = { \
33 .name = PPC_IRQ_SCALL, \
34 .hdl = handler, \
35 .handle = NULL, \
36 .on = NULL, \
37 .off = NULL, \
38 .isOn = NULL \
39 }; \
40 BSP_install_rtems_irq_handler (&scIrqData); \
41 } while(0)
42
43#define Cause_tm27_intr() __asm__ volatile ("sc")
44
45#define Clear_tm27_intr() /* empty */
46
47#define Lower_tm27_intr() /* empty */
48
49#endif