Changeset b6c3e3e in rtems
- Timestamp:
- 10/12/14 20:37:33 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 3dc9d80f
- Parents:
- da71123
- 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/powerpc/mpc5xx/clock/clock.c
rda71123 rb6c3e3e 1 /* clock.c1 /* 2 2 * 3 3 * This routine initializes the PIT on the MPC5xx. 4 4 * The tick frequency is specified by the bsp. 5 * 6 * 5 */ 6 7 /* 7 8 * MPC5xx port sponsored by Defence Research and Development Canada - Suffield 8 9 * Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca) … … 56 57 57 58 /* 58 * These are set by clock driver during its init59 */60 61 rtems_device_major_number rtems_clock_major = ~0;62 rtems_device_minor_number rtems_clock_minor;63 64 /*65 59 * ISR Handler 66 60 */ … … 108 102 } 109 103 110 void 111 clockOff(void* unused) 104 void clockOff(void* unused) 112 105 { 113 106 /* disable PIT and PIT interrupts */ … … 128 121 * Remove the clock interrupt handler by setting handler to NULL 129 122 */ 130 void 131 Clock_exit(void) 123 void Clock_exit(void) 132 124 { 133 125 (void) BSP_disconnect_clock_handler (); 134 126 } 135 127 136 void Install_clock(rtems_isr_entry clock_isr)128 static void Install_clock(rtems_isr_entry clock_isr) 137 129 { 138 130 Clock_driver_ticks = 0; … … 141 133 atexit(Clock_exit); 142 134 } 143 144 void145 ReInstall_clock(rtems_isr_entry new_clock_isr)146 {147 BSP_connect_clock_handler (new_clock_isr);148 }149 150 135 151 136 rtems_device_driver Clock_initialize( … … 157 142 Install_clock( Clock_isr ); 158 143 159 /*160 * make major/minor avail to others such as shared memory driver161 */162 163 rtems_clock_major = major;164 rtems_clock_minor = minor;165 166 144 return RTEMS_SUCCESSFUL; 167 145 }
Note: See TracChangeset
for help on using the changeset viewer.