forked from Imagelibrary/rtems
2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for nanoseconds since tick handler.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for
|
||||||
|
nanoseconds since tick handler.
|
||||||
|
|
||||||
2009-08-06 Xi Yang <hiyangxi@gmail.com>
|
2009-08-06 Xi Yang <hiyangxi@gmail.com>
|
||||||
|
|
||||||
* pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty
|
* pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty
|
||||||
|
|||||||
@@ -37,6 +37,16 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
|
|||||||
*/
|
*/
|
||||||
#define CLOCK_VECTOR 0
|
#define CLOCK_VECTOR 0
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the nanoseconds since last tick
|
||||||
|
*/
|
||||||
|
uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Clock_driver_nanoseconds_since_last_tick \
|
||||||
|
clock_driver_get_nanoseconds_since_last_tick
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When we get the clock interrupt
|
* When we get the clock interrupt
|
||||||
|
|||||||
@@ -37,6 +37,16 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
|
|||||||
*/
|
*/
|
||||||
#define CLOCK_VECTOR 0
|
#define CLOCK_VECTOR 0
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the nanoseconds since last tick
|
||||||
|
*/
|
||||||
|
uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Clock_driver_nanoseconds_since_last_tick \
|
||||||
|
clock_driver_get_nanoseconds_since_last_tick
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When we get the clock interrupt
|
* When we get the clock interrupt
|
||||||
@@ -73,7 +83,7 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
|
|||||||
#define Clock_driver_support_initialize_hardware() \
|
#define Clock_driver_support_initialize_hardware() \
|
||||||
do { \
|
do { \
|
||||||
uint32_t cr; \
|
uint32_t cr; \
|
||||||
uint32_t freq,m,p,s; \
|
uint32_t freq; \
|
||||||
/* set MUX for Timer4 to 1/16 */ \
|
/* set MUX for Timer4 to 1/16 */ \
|
||||||
cr=rTCFG1 & 0xFFF0FFFF; \
|
cr=rTCFG1 & 0xFFF0FFFF; \
|
||||||
rTCFG1=(cr | (3<<16)); \
|
rTCFG1=(cr | (3<<16)); \
|
||||||
|
|||||||
Reference in New Issue
Block a user