RTEMS: bsps/mips/jmr3904/clock/clockdrv.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros
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) rtems_interrupt_handler_install( CLOCK_VECTOR, "clock", 0, _new, NULL )
#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)