5
Last change
on this file since 9964895 was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
502 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup sparc_leon2 |
---|
4 | * @brief LEON2 BSP Delay Method |
---|
5 | */ |
---|
6 | |
---|
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 = LEON_REG.Timer_Counter_1; |
---|
23 | then += usecs; |
---|
24 | |
---|
25 | while (LEON_REG.Timer_Counter_1 >= then) |
---|
26 | ; |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.