Changeset 19612c1 in rtems
- Timestamp:
- 10/12/14 20:37:33 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- da71123
- Parents:
- cf6bc1e
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 20:37:33)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/arm/pxa255/clock/clock.c
rcf6bc1e r19612c1 1 1 /* 2 * By Yang Xi <hiyangxi@gmail.com>3 2 * PXA255 clock specific using the System Timer 4 3 * 5 4 * RTEMS uses IRQ 26 as Clock Source 5 */ 6 7 /* 8 * By Yang Xi <hiyangxi@gmail.com> 6 9 * 7 10 * The license and distribution terms for this file may be … … 25 28 26 29 static unsigned long period_num; 27 28 /**29 * Return the nanoseconds since last tick30 */31 uint32_t clock_driver_get_nanoseconds_since_last_tick(void)32 {33 return 0;34 }35 36 #define Clock_driver_nanoseconds_since_last_tick \37 clock_driver_get_nanoseconds_since_last_tick38 30 39 31 /** … … 96 88 97 89 #define Clock_driver_support_install_isr( _new, _old ) \ 98 do { 99 _old = NULL; 90 do { \ 91 _old = NULL; \ 100 92 BSP_install_rtems_irq_handler(&clock_isr_data); \ 101 93 } while (0) 102 94 103 void Clock_driver_support_initialize_hardware(void)95 static void Clock_driver_support_initialize_hardware(void) 104 96 { 97 period_num = TIMER_RATE* rtems_configuration_get_microseconds_per_tick(); 105 98 #if ON_SKYEYE==1 106 period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/100000;99 period_num /= 100000; 107 100 #else 108 period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/10000;101 period_num /= 10000; 109 102 #endif 110 103 } … … 119 112 } while (0) 120 113 121 void Clock_driver_support_shutdown_hardware( void )114 static void Clock_driver_support_shutdown_hardware( void ) 122 115 { 123 116 BSP_remove_rtems_irq_handler(&clock_isr_data);
Note: See TracChangeset
for help on using the changeset viewer.