forked from Imagelibrary/rtems
gba/include/bsp.h: Remove rtems_bsp_delay()
This commit is contained in:
@@ -37,18 +37,6 @@ extern "C" {
|
|||||||
/** Define operation count for Tests */
|
/** Define operation count for Tests */
|
||||||
#define OPERATION_COUNT 10
|
#define OPERATION_COUNT 10
|
||||||
|
|
||||||
/**
|
|
||||||
* Simple spin delay in microsecond units for device drivers.
|
|
||||||
* This is very dependent on the clock speed of the target.
|
|
||||||
*/
|
|
||||||
#define rtems_bsp_delay( microseconds ) \
|
|
||||||
{ \
|
|
||||||
uint32_t i; \
|
|
||||||
for(i = 0; i<microseconds;) {i++;} \
|
|
||||||
uint32_t _cnt = _microseconds; \
|
|
||||||
__asm__ volatile ("0: nop; sub %0, %0, #1; cmp %0,#0; bne 0b" : "=c"(_cnt) : "0"(_cnt)); \
|
|
||||||
}
|
|
||||||
|
|
||||||
/** gba_zero_memory library function in start.S */
|
/** gba_zero_memory library function in start.S */
|
||||||
extern void gba_zero_memory(int start, int stop);
|
extern void gba_zero_memory(int start, int stop);
|
||||||
/** gba_move_memory library function in start.S */
|
/** gba_move_memory library function in start.S */
|
||||||
|
|||||||
Reference in New Issue
Block a user