![]() |
|
|||
File indexing completed on 2025-05-11 08:24:02
0001 /* 0002 * This routine does the bulk of the system initialization. 0003 */ 0004 0005 /* 0006 * COPYRIGHT (c) 2001. 0007 * Ralf Corsepius (corsepiu@faw.uni-ulm.de). 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 0012 * 0013 * COPYRIGHT (c) 2001. 0014 * On-Line Applications Research Corporation (OAR). 0015 * 0016 * The license and distribution terms for this file may be 0017 * found in the file LICENSE in this distribution or at 0018 * http://www.rtems.org/license/LICENSE. 0019 */ 0020 0021 #include <bsp.h> 0022 #include <bsp/bootcard.h> 0023 #include <rtems/score/percpu.h> 0024 0025 uint32_t bsp_clicks_per_second; 0026 0027 #ifndef START_HW_INIT 0028 void bsp_hw_init(void); 0029 #endif 0030 0031 /* 0032 * bsp_start 0033 * 0034 * This routine does the bulk of the system initialization. 0035 */ 0036 void bsp_start( void ) 0037 { 0038 /* 0039 * For real boards you need to setup the hardware 0040 * and need to copy the vector table from rom to ram. 0041 * 0042 * Depending on the board this can either be done from inside the rom 0043 * startup code, rtems startup code or here. 0044 */ 0045 0046 #ifndef START_HW_INIT 0047 /* board hardware setup here, or from 'start.S' */ 0048 bsp_hw_init(); 0049 #endif 0050 0051 /* 0052 * initialize the device driver parameters 0053 */ 0054 bsp_clicks_per_second = CPU_CLOCK_RATE_HZ; 0055 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |