Changeset a1f89b4 in rtems for c/src/lib/libcpu/a29k
- Timestamp:
- 01/26/00 14:22:34 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 64ab2e9
- Parents:
- 21677c0e
- Location:
- c/src/lib/libcpu/a29k/timer
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/a29k/timer/Makefile.am
r21677c0e ra1f89b4 13 13 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) 14 14 15 S_FILES = gettime.S 16 S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o) 17 18 OBJS = $(C_O_FILES) $(S_O_FILES) 15 OBJS = $(C_O_FILES) 19 16 20 17 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -
c/src/lib/libcpu/a29k/timer/timer.c
r21677c0e ra1f89b4 30 30 #define TIMER_MAX_VALUE 0xffffffff 31 31 32 extern unsigned32 mips_read_timer( void ); 32 static unsigned32 read_timer( void ) 33 { 34 return 0; /* do something with real hardware here */ 35 } 33 36 34 37 static rtems_boolean Timer_driver_Find_average_overhead; … … 37 40 void Timer_initialize( void ) 38 41 { 39 /* 40 Timer_initial_value = mips_read_timer(); 41 */ 42 Timer_initial_value = read_timer(); 43 42 44 /* 43 45 * Somehow start the timer … … 71 73 */ 72 74 73 clicks = mips_read_timer(); /* XXX: read some HW here */75 clicks = read_timer(); /* XXX: read some HW here */ 74 76 if (clicks < Timer_initial_value) 75 77 {
Note: See TracChangeset
for help on using the changeset viewer.