RTEMS 6.3
Loading...
Searching...
No Matches
clockdrv.c File Reference
#include <rtems.h>
#include <bsp/irq.h>
#include <bsp.h>
#include "../../../shared/dev/clock/clockimpl.h"

Macros

#define CLOCK_DRIVER_USE_FAST_IDLE   1
#define CLOCK_VECTOR   TX3904_IRQ_TMR0
#define CLICKS   5000
#define Clock_driver_support_install_isr(_new)
#define Clock_driver_support_initialize_hardware()
#define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER

Detailed Description

Instantiate the clock driver shell.

The TX3904 simulator in gdb counts instructions.

Macro Definition Documentation

◆ Clock_driver_support_initialize_hardware

#define Clock_driver_support_initialize_hardware ( void)
Value:
do { \
uint32_t _clicks = CLICKS; \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CCDR, 0x3 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CPRA, _clicks ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TISR, 0x00 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_ITMR, 0x8001 ); \
TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_TCR, 0xC0 ); \
*((volatile uint32_t*) 0xFFFFC01C) = 0x00000700; \
} while(0)

◆ Clock_driver_support_install_isr

#define Clock_driver_support_install_isr ( _new)
Value:
rtems_interrupt_handler_install( CLOCK_VECTOR, "clock", 0, _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