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 m68k_uC5282
6 * @brief Implementations for interrupt mechanisms for Time Test 27
7 */
8
9/*
10 * Copyright (c) 2005 Eric Norum <eric@norum.ca>
11 *
12 * COPYRIGHT (c) 2005-2014.
13 * On-Line Applications Research Corporation (OAR).
14 *
15 * The license and distribution terms for this file may be
16 * found in the file LICENSE in this distribution or at
17 * http://www.rtems.org/license/LICENSE.
18 */
19
20#ifndef _RTEMS_TMTEST27
21#error "This is an RTEMS internal file you must not include directly."
22#endif
23
24#ifndef __tm27_h
25#define __tm27_h
26
27/*
28 * Stuff for Time Test 27
29 * Don't bother with hardware -- just use a software-interrupt
30 */
31
32#define MUST_WAIT_FOR_INTERRUPT 0
33
34#define TM27_USE_VECTOR_HANDLER
35
36#define Install_tm27_vector( handler ) \
37 rtems_interrupt_handler_install( \
38 35, \
39 "Install tm27 interrupt", \
40 RTEMS_INTERRUPT_UNIQUE, \
41 (void *)handler, \
42 NULL \
43 );
44
45#define Cause_tm27_intr() asm volatile ("trap #3");
46
47#define Clear_tm27_intr() /* empty */
48
49#define Lower_tm27_intr() /* empty */
50
51#endif