Changeset 3dc9d80f in rtems
- Timestamp:
- 10/12/14 20:37:33 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 4172cf1b
- Parents:
- b6c3e3e
- 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/sh/sh7032/clock/ckinit.c
rb6c3e3e r3dc9d80f 1 1 /* 2 2 * This file contains the clock driver the Hitachi SH 703X 3 * 3 */ 4 5 /* 4 6 * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and 5 7 * Bernd Becker (becker@faw.uni-ulm.de) … … 11 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 14 * 13 *14 15 * COPYRIGHT (c) 1998. 15 16 * On-Line Applications Research Corporation (OAR). … … 24 25 #include <stdlib.h> 25 26 26 #include <rtems/ libio.h>27 #include <rtems/clockdrv.h> 27 28 #include <rtems/score/sh_io.h> 28 29 #include <rtems/score/sh.h> … … 123 124 volatile uint32_t Clock_driver_ticks; 124 125 125 staticvoid Clock_exit( void );126 void Clock_exit( void ); 126 127 static rtems_isr Clock_isr( rtems_vector_number vector ); 127 128 … … 138 139 139 140 /* 140 * These are set by clock driver during its init141 */142 143 rtems_device_major_number rtems_clock_major = ~0;144 rtems_device_minor_number rtems_clock_minor;145 146 /*147 141 * The previous ISR on this clock tick interrupt vector. 148 142 */ 149 150 143 rtems_isr_entry Old_ticker; 151 144 … … 153 146 * Isr Handler 154 147 */ 155 156 rtems_isr Clock_isr( 148 static rtems_isr Clock_isr( 157 149 rtems_vector_number vector 158 150 ) … … 191 183 * is used to initially establish the clock tick. 192 184 */ 193 194 void Install_clock( 185 static void Install_clock( 195 186 rtems_isr_entry clock_isr 196 187 ) … … 277 268 * Clean up before the application exits 278 269 */ 279 280 270 void Clock_exit( void ) 281 271 { … … 313 303 Install_clock( Clock_isr ); 314 304 315 /*316 * make major/minor avail to others such as shared memory driver317 */318 319 rtems_clock_major = major;320 rtems_clock_minor = minor;321 322 305 return RTEMS_SUCCESSFUL; 323 306 }
Note: See TracChangeset
for help on using the changeset viewer.