RTEMS
bsps
sparc
leon3
start
bspdelay.c
Go to the documentation of this file.
1
7
/*
8
* COPYRIGHT (c) 1989-2011.
9
* On-Line Applications Research Corporation (OAR).
10
*
11
* The license and distribution terms for this file may be
12
* found in the file LICENSE in this distribution or at
13
* http://www.rtems.org/license/LICENSE.
14
*/
15
16
#include <bsp.h>
17
18
void
rtems_bsp_delay(
int
usecs)
19
{
20
uint32_t then;
21
22
then =LEON3_Timer_Regs->timer[0].value;
23
then += usecs;
24
25
while
(LEON3_Timer_Regs->timer[0].value >= then)
26
;
27
}
Generated by
1.8.14