RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Macros | Functions | Variables
clock.c File Reference

PXA255 clock specific using the System Timer. More...

#include <rtems.h>
#include <rtems/clockdrv.h>
#include <rtems/libio.h>
#include <stdlib.h>
#include <bsp.h>
#include <bspopts.h>
#include <bsp/irq.h>
#include <pxa255.h>
#include "../../../shared/dev/clock/clockimpl.h"

Macros

#define Clock_driver_support_install_isr(_new)    BSP_install_rtems_irq_handler(&clock_isr_data)
 
#define Clock_driver_support_at_tick(arg)
 
#define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER
 

Functions

void Clock_isr (rtems_irq_hdl_param arg)
 

Variables

rtems_irq_connect_data clock_isr_data
 

Detailed Description

PXA255 clock specific using the System Timer.

RTEMS uses IRQ 26 as Clock Source

Macro Definition Documentation

◆ Clock_driver_support_at_tick

#define Clock_driver_support_at_tick (   arg)
Value:
do { \
/* read the status to clear the int */ \
XSCALE_OS_TIMER_TSR = 0x1; \
\
/*Add the match register*/ \
XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num; \
} while (0)

Variable Documentation

◆ clock_isr_data

rtems_irq_connect_data clock_isr_data
Initial value:
= {
.name = XSCALE_IRQ_OS_TIMER,
.hdl = Clock_isr,
.handle = NULL,
.on = clock_isr_on,
.off = clock_isr_off,
.isOn = clock_isr_is_on,
}