comparison packages/kernel/current/include/pkgconf/kernel.h @ 8:ece80412419a ecos-sw-1999-05-21

Merge from eCos master repository on 1999-05-21-22:05:54-BST
author jlarmour
date Fri, 21 May 1999 15:09:30 +0000
parents d376b777e2ce
children 29bc183297e1
comparison
equal deleted inserted replaced
7:e55593b6dcea 8:ece80412419a
1117 1117
1118 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_PERIOD 1118 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD CYGNUM_KERNEL_COUNTERS_CLOCK_OVERRIDE_PERIOD
1119 1119
1120 #else /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */ 1120 #else /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */
1121 1121
1122 #if defined(CYG_HAL_MN10300_STDEVAL1) 1122 // Include HAL/Platform specifics
1123 1123 #include CYGBLD_HAL_PLATFORM_H
1124 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100} 1124
1125 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 150000 1125 // Fallback defaults (in case HAL didn't define these)
1126 1126 #ifndef CYGNUM_HAL_RTC_NUMERATOR
1127 #define CYGNUM_HAL_RTC_NUMERATOR 1000000000
1128 #define CYGNUM_HAL_RTC_DENOMINATOR 100
1129 #define CYGNUM_HAL_RTC_PERIOD 9999
1127 #endif 1130 #endif
1128 #if defined(CYG_HAL_MN10300_SIM) 1131
1129 1132 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION \
1130 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100} 1133 {CYGNUM_HAL_RTC_NUMERATOR, CYGNUM_HAL_RTC_DENOMINATOR}
1131 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 9999 1134 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD \
1132 1135 CYGNUM_HAL_RTC_PERIOD
1133 #endif
1134
1135 #if defined(CYG_HAL_MIPS_TX39_JMR3904)
1136
1137 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1138 #if (CYGHWR_HAL_MIPS_CPU_FREQ == 50)
1139 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 15360
1140 #elif (CYGHWR_HAL_MIPS_CPU_FREQ == 66)
1141 # define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 20736
1142 #else
1143 #error Unsupported clock frequency
1144 #endif
1145 #endif
1146
1147 #if defined(CYG_HAL_MIPS_SIM)
1148
1149 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1150 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 999
1151
1152 #endif
1153
1154
1155 #if defined(CYG_HAL_POWERPC_MPC860)
1156
1157 // Period is busclock/16/100.
1158 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1159 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 20833
1160
1161 #endif
1162
1163 #if defined(CYG_HAL_ARM_PID)
1164 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1165 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 12500
1166 #endif
1167 #if defined(CYG_HAL_ARM_AEB)
1168 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1169 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD (240000/16)
1170 #endif
1171
1172 #if defined(CYG_HAL_I386_LINUX)
1173 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1174 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 10000
1175 #endif
1176
1177 #ifndef CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION
1178
1179 #define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {1000000000, 100}
1180 #define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD 9999
1181
1182 #endif
1183 1136
1184 #endif /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */ 1137 #endif /* CYGPKG_KERNEL_COUNTERS_CLOCK_OVERRIDE */
1185 1138
1186 /* --------------------------------------------------------------------- 1139 /* ---------------------------------------------------------------------
1187 * Thread-related miscellania. 1140 * Thread-related miscellania.