RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Macros

Use the last periodic interval timer (PIT3) as the system clock. More...

#include <rtems.h>
#include <bsp.h>
#include <mcf5282/mcf5282.h>
#include "../../../shared/dev/clock/clockimpl.h"

Macros

#define CLOCK_VECTOR   (64+58)
 
#define Clock_driver_support_at_tick(arg)
 
#define Clock_driver_support_install_isr(_new)
 
#define Clock_driver_support_initialize_hardware()
 
#define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER
 

Detailed Description

Use the last periodic interval timer (PIT3) as the system clock.

Macro Definition Documentation

◆ Clock_driver_support_at_tick

#define Clock_driver_support_at_tick (   arg)
Value:
do { \
MCF5282_PIT3_PCSR |= MCF5282_PIT_PCSR_PIF; \
} while (0) \

◆ Clock_driver_support_initialize_hardware

#define Clock_driver_support_initialize_hardware (   void)
Value:
do { \
int level; \
int preScaleCode = 5; \
MCF5282_INTC0_ICR58 = MCF5282_INTC_ICR_IL(PIT3_IRQ_LEVEL) | \
MCF5282_INTC_ICR_IP(PIT3_IRQ_PRIORITY); \
rtems_interrupt_disable( level ); \
MCF5282_INTC0_IMRH &= ~MCF5282_INTC_IMRH_INT58; \
MCF5282_PIT3_PCSR &= ~MCF5282_PIT_PCSR_EN; \
rtems_interrupt_enable( level ); \
MCF5282_PIT3_PMR = 0x23FE; \
MCF5282_PIT3_PCSR = MCF5282_PIT_PCSR_PRE(preScaleCode) | \
MCF5282_PIT_PCSR_PIE | \
MCF5282_PIT_PCSR_RLD | \
MCF5282_PIT_PCSR_EN; \
} while (0)

◆ Clock_driver_support_install_isr

#define Clock_driver_support_install_isr (   _new)
Value:
CLOCK_VECTOR, \
"Install clock interrupt", \
(void *)_new, \
NULL \
);
rtems_status_code rtems_interrupt_handler_install(rtems_vector_number vector, const char *info, rtems_option options, rtems_interrupt_handler routine, void *arg)
Installs the interrupt handler routine and argument at the interrupt vector.
Definition: irq-handler-install.c:85
#define RTEMS_INTERRUPT_UNIQUE
This interrupt handler install option ensures that the interrupt handler is unique.
Definition: intr.h:972