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_ss555
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
22/*
23 * Stuff for Time Test 27
24 *
25 * The following require that IRQ7 be jumpered to ground. On the SS555,
26 * this can be done by shorting together CN5 pin 48 and CN5 pin 50.
27 */
28
29#define MUST_WAIT_FOR_INTERRUPT 1
30
31extern rtems_irq_connect_data tm27IrqData;
32
33#define Install_tm27_vector( handler ) \
34{ \
35 usiu.siel |= (1 << 17); \
36 usiu.sipend |= (1 << 17); \
37 \
38 tm27IrqData.hdl = handler; \
39 BSP_install_rtems_irq_handler (&tm27IrqData); \
40}
41
42#define Cause_tm27_intr() \
43{ \
44 usiu.siel &= ~(1 << 17); \
45}
46
47#define Clear_tm27_intr() \
48{ \
49 usiu.siel |= (1 << 17); \
50 usiu.sipend |= (1 << 17); \
51}
52
53#define Lower_tm27_intr() \
54{ \
55 ppc_cached_irq_mask |= (1 << 17); \
56 usiu.simask = ppc_cached_irq_mask; \
57}
58
59#endif
Definition: irq.h:65