RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros
ckinit.c File Reference

This source file contains the Clock Driver implementation. More...

#include <bsp.h>
#include <bsp/fatal.h>
#include <bsp/irq.h>
#include <bsp/leon3.h>
#include <rtems/rtems/intr.h>
#include <grlib/irqamp.h>
#include <rtems/score/profiling.h>
#include <rtems/timecounter.h>
#include "../../../shared/dev/clock/clockimpl.h"

Macros

#define Adjust_clkirq_for_node()   do { clkirq += LEON3_CLOCK_INDEX; } while(0)
 
#define Clock_driver_support_find_timer()
 
#define Clock_driver_support_install_isr(isr)    bsp_clock_handler_install(isr)
 
#define Clock_driver_support_set_interrupt_affinity(online_processors)    bsp_interrupt_set_affinity(clkirq, online_processors)
 
#define Clock_driver_support_initialize_hardware()    leon3_clock_initialize()
 
#define Clock_driver_timecounter_tick()   leon3_tc_do_tick()
 
#define BSP_FEATURE_IRQ_EXTENSION
 

Detailed Description

This source file contains the Clock Driver implementation.

Macro Definition Documentation

◆ Clock_driver_support_find_timer

#define Clock_driver_support_find_timer ( )
Value:
do { \
/* Assume timer found during BSP initialization */ \
clkirq = (grlib_load_32(&LEON3_Timer_Regs->config) & 0xf8) >> 3; \
\
Adjust_clkirq_for_node(); \
} \
} while (0)
gptimer * LEON3_Timer_Regs
This pointer provides the GPTIMER register block address.
Definition: amba.c:126
uint32_t config
See Configuration register (CONFIG).
Definition: gptimer-regs.h:360