36#ifndef _RTEMS_TMTEST27
37#error "This is an RTEMS internal file you must not include directly."
49#define MUST_WAIT_FOR_INTERRUPT 1
51#define TM27_INTERRUPT_VECTOR_DEFAULT TMS570_IRQ_TIMER_3
53#define TM27_INTERRUPT_VECTOR_ALTERNATIVE TMS570_IRQ_TIMER_1
60 TMS570_RTI.CNT[1].CPUCx = 1;
61 TMS570_RTI.CNT[1].UCx = 0;
62 TMS570_RTI.CNT[1].FRCx = 0;
63 TMS570_RTI.CMP[1].COMPx = 1;
64 TMS570_RTI.CMP[1].UDCPx = 1;
65 TMS570_RTI.CMP[2].COMPx = 1;
66 TMS570_RTI.CMP[2].UDCPx = 1;
67 TMS570_RTI.CMP[3].COMPx = 1;
68 TMS570_RTI.CMP[3].UDCPx = 1;
69 TMS570_RTI.COMPCTRL |= TMS570_RTI_COMPCTRL_COMPSEL1 |
70 TMS570_RTI_COMPCTRL_COMPSEL2 |
71 TMS570_RTI_COMPCTRL_COMPSEL3;
72 TMS570_RTI.GCTRL |= TMS570_RTI_GCTRL_CNT1EN;
74 rtems_interrupt_entry_initialize(
86 rtems_interrupt_entry_initialize(
99static inline void Cause_tm27_intr(
void)
101 TMS570_RTI.SETINTENA = TMS570_RTI_SETINTENA_SETINT3;
104static inline void Clear_tm27_intr(
void)
106 TMS570_RTI.CLEARINTENA = TMS570_RTI_CLEARINTENA_CLEARINT2 |
107 TMS570_RTI_CLEARINTENA_CLEARINT3;
110static inline void Lower_tm27_intr(
void)
112 TMS570_RTI.SETINTENA = TMS570_RTI_SETINTENA_SETINT2;
113 (void) _ARMV4_Status_irq_enable();
118 TMS570_RTI.SETINTENA = TMS570_RTI_SETINTENA_SETINT1;
124 TMS570_RTI.CLEARINTENA = TMS570_RTI_CLEARINTENA_CLEARINT1;
This header file provides interfaces of the ARMv4 architecture support.
rtems_status_code rtems_interrupt_entry_install(rtems_vector_number vector, rtems_option options, rtems_interrupt_entry *entry)
Installs the interrupt entry at the interrupt vector.
Definition: irq-generic.c:264
#define RTEMS_INTERRUPT_SHARED
This interrupt handler install option allows that the interrupt handler may share the interrupt vecto...
Definition: intr.h:960
void(* rtems_interrupt_handler)(void *)
Interrupt handler routines shall have this type.
Definition: intr.h:1030
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
@ RTEMS_SUCCESSFUL
This status code indicates successful completion of a requested operation.
Definition: status.h:90
This header file defines the RTEMS Classic API.
This structure represents an interrupt entry.
Definition: intr.h:1070
This header file provides TMS570 interfaces.