2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>

* rtems/score/cpu.h: Move extern of bsp_clicks_per_usec so it is not
	nested inside braces.
This commit is contained in:
Joel Sherrill
2008-09-14 23:17:13 +00:00
parent 3ddb428321
commit 5c8d42b7b2
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Move extern of bsp_clicks_per_usec so it is not
nested inside braces.
2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Do not define boolean, single_precision,
+3 -1
View File
@@ -424,10 +424,12 @@ static inline uint32_t CPU_swap_u32(
asm volatile( "mfspr %0,268" : "=r" (_value) )
#endif
/* Must be provided for rtems_bsp_delay to work */
extern uint32_t bsp_clicks_per_usec;
#define rtems_bsp_delay( _microseconds ) \
do { \
uint32_t start, ticks, now; \
extern uint32_t bsp_clicks_per_usec; \
CPU_Get_timebase_low( start ) ; \
ticks = (_microseconds) * bsp_clicks_per_usec; \
do \