forked from Imagelibrary/rtems
2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/leds.c, console/mc68ec.c: Rename delay to rtems_bsp_delay to avoid conflicts in application space.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* console/leds.c, console/mc68ec.c: Rename delay to rtems_bsp_delay to
|
||||
avoid conflicts in application space.
|
||||
|
||||
2007-05-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* startup/linkcmds: Handle .data.* sections
|
||||
|
||||
@@ -71,12 +71,12 @@ zylons()
|
||||
{
|
||||
unsigned char *leds = (unsigned char *)LED_ADDR;
|
||||
unsigned char curled = 0xfe;
|
||||
void delay( int );
|
||||
void rtems_bsp_delay( int );
|
||||
|
||||
while (1)
|
||||
{
|
||||
*leds = curled;
|
||||
curled = (curled >> 1) | (curled << 7);
|
||||
delay ( 8000 );
|
||||
rtems_bsp_delay ( 8000 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
#include "leds.h"
|
||||
|
||||
/*
|
||||
* delay -- delay execution. This is an ugly hack. It should
|
||||
* rtems_bsp_delay -- delay execution. This is an ugly hack. It should
|
||||
* use the timer, but I'm waiting for docs. (sigh)
|
||||
*/
|
||||
void delay(num)
|
||||
void rtems_bsp_delay(num)
|
||||
int num;
|
||||
{
|
||||
while (num--)
|
||||
|
||||
Reference in New Issue
Block a user