Changeset 5fdb72a0 in rtems
- Timestamp:
- 10/12/14 19:09:37 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 5ad38eac
- Parents:
- 45666bc7
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 19:09:37)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
r45666bc7 r5fdb72a0 1 /* ckinit.c 2 * 1 /* 3 2 * This file provides a template for the clock device driver initialization. 4 3 * 5 * COPYRIGHT (c) 1989-1999. 4 * If possible, please use the clockdrv_shell.h method for instantiating 5 * a clock driver. 6 */ 7 8 /* 9 * COPYRIGHT (c) 1989-2014. 6 10 * On-Line Applications Research Corporation (OAR). 7 11 * … … 23 27 * driver. 24 28 */ 25 26 29 #define CLOCK_VECTOR 4 27 30 … … 30 33 * number of clock ticks since the driver was initialized. 31 34 */ 32 33 35 volatile uint32_t Clock_driver_ticks; 34 36 … … 40 42 * has passed. 41 43 */ 42 43 44 uint32_t Clock_isrs; /* ISRs until next tick */ 44 45 /*46 * These are set by clock driver during its init47 */48 49 rtems_device_major_number rtems_clock_major = ~0;50 rtems_device_minor_number rtems_clock_minor;51 45 52 46 /* 53 47 * The previous ISR on this clock tick interrupt vector. 54 48 */ 55 56 49 rtems_isr_entry Old_ticker; 57 50 … … 61 54 * Isr Handler 62 55 */ 63 64 rtems_isr Clock_isr( 56 static rtems_isr Clock_isr( 65 57 rtems_vector_number vector 66 58 ) 67 59 { 68 /*69 * bump the number of clock driver ticks since initialization70 *71 * determine if it is time to announce the passing of tick as configured72 * to RTEMS through the rtems_clock_tick directive73 *74 * perform any timer dependent tasks75 */60 /* 61 * bump the number of clock driver ticks since initialization 62 * 63 * determine if it is time to announce the passing of tick as configured 64 * to RTEMS through the rtems_clock_tick directive 65 * 66 * perform any timer dependent tasks 67 */ 76 68 } 77 69 … … 82 74 * is used to initially establish the clock tick. 83 75 */ 84 85 76 void Install_clock( 86 77 rtems_isr_entry clock_isr … … 124 115 * Device driver entry point for clock tick driver initialization. 125 116 */ 126 127 117 rtems_device_driver Clock_initialize( 128 118 rtems_device_major_number major, … … 133 123 Install_clock( Clock_isr ); 134 124 135 /*136 * make major/minor avail to others such as shared memory driver137 */138 139 rtems_clock_major = major;140 rtems_clock_minor = minor;141 142 125 return RTEMS_SUCCESSFUL; 143 126 }
Note: See TracChangeset
for help on using the changeset viewer.