2001-09-27 Joel Sherrill <joel@OARcorp.com>

* include/bsp.h: Renamed delay() to rtems_bsp_delay().
	* shmsupp/lock.c: Renamed delay() to rtems_bsp_delay().
This commit is contained in:
Joel Sherrill
2001-09-28 13:25:55 +00:00
parent 4009fd862a
commit cbb5fc7072
6 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2001-09-27 Joel Sherrill <joel@OARcorp.com>
* include/bsp.h: Renamed delay() to rtems_bsp_delay().
* shmsupp/lock.c: Renamed delay() to rtems_bsp_delay().
2001-09-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

View File

@@ -71,7 +71,7 @@ extern "C" {
* This is very dependent on the clock speed of the target.
*/
#define delay( microseconds ) \
#define rtems_bsp_delay( microseconds ) \
{ register rtems_unsigned32 _delay=(microseconds); \
register rtems_unsigned32 _tmp = 0; /* initialized to avoid warning */ \
asm volatile( "0: \

View File

@@ -52,7 +52,7 @@ void Shm_Lock(
atomic_modify( SHM_LOCK_VALUE, &lq_cb->lock, oldlock );
if ( !(oldlock & SHM_LOCK_VALUE) )
return;
delay( 28 ); /* delay 28 microseconds */
rtems_bsp_delay( 28 ); /* delay 28 microseconds */
}
}

View File

@@ -1,3 +1,7 @@
2001-09-27 Joel Sherrill <joel@OARcorp.com>
* include/bsp.h: Renamed delay() to rtems_bsp_delay().
* shmsupp/lock.c: Renamed delay() to rtems_bsp_delay().
2001-09-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

View File

@@ -66,7 +66,7 @@ extern "C" {
* This is very dependent on the clock speed of the target.
*/
#define delay( microseconds ) \
#define rtems_bsp_delay( microseconds ) \
{ \
}

View File

@@ -62,7 +62,7 @@ void Shm_Lock(
*/
if ( lock_value )
delay( 10 ); /* approximately 10 microseconds */
rtems_bsp_delay( 10 ); /* approximately 10 microseconds */
}
}