![]() |
|
|||
File indexing completed on 2025-05-11 08:24:08
0001 /** 0002 * @file 0003 * 0004 * LEON3 BSP Delay Method 0005 */ 0006 0007 /* 0008 * COPYRIGHT (c) 1989-2011. 0009 * On-Line Applications Research Corporation (OAR). 0010 * 0011 * The license and distribution terms for this file may be 0012 * found in the file LICENSE in this distribution or at 0013 * http://www.rtems.org/license/LICENSE. 0014 */ 0015 0016 #include <bsp.h> 0017 #include <bsp/leon3.h> 0018 0019 void rtems_bsp_delay(int usecs) 0020 { 0021 uint32_t then; 0022 gptimer_timer *regs; 0023 0024 regs = &LEON3_Timer_Regs->timer[0]; 0025 then =grlib_load_32(®s->tcntval); 0026 then += usecs; 0027 0028 while (grlib_load_32(®s->tcntval) >= then) 0029 ; 0030 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |