mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 08:15:20 +08:00
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:
@@ -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,
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user