⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 AT91所有开发板的资料 AT91所有开发板的资料
💻 C
字号:
/* -*-C-*- * * $Revision: 1.3 $ *   $Author: mechavar $ *     $Date: 2000/05/01 19:37:08 $ * * Copyright (c) 2000 ARM, INC. * All Rights Reserved. * *   Project: BootStrap Loader * *    */#include "uhal.h"#include "bsl.h"#include "lib.h"#include "modules.h"#include "bsl_platform.h"/* defined in shell.c */extern CallBack Shell(void);/* defined in stubs.c */extern ModuleHeader ModuleHead;void bsl_AutoBoot( void ){   SetLEDs( 8 );   dispMode( 0 );		/* set the 7 segment display */   ScanModules( 0 );   BootModules( 0 );		/* Should not return */   while ( 1 )   {      ;   }}void bsl_main( void ){   CallBack cb;   while ( 1 )   {      cb = Shell();      if ( NULL != cb )      {	 (*cb)();      }   }}int main(int argc, int *argv[]){   int i;   CallBack cb;   uHALr_LibraryInit();   bsl_InitIO();   bsl_SerialInit();   SetLEDs( 0xF );   /* Handle the built in factory test, if neccessary */   if ( bsl_FactoryTestRequired() != FALSE )   {      /* no return */      bsl_DoFactoryTest();   }   /* Negotiate the debug connection */   if ( NULL == env_lookup( "noauto" ) )   {      i = bsl_AutoBaud( HOST_COMPORT );   } /* end if the connection should autodetect the baud rate */   else   {      bsl_SetBaudPerEnv();   }   /* Start boot up */   uHALr_printf( "\nARM Evaluator7T Boot Monitor PreRelease 1.00\n" );   if ( NULL == env_lookup( "noautoboot" ) )   {      if ( FALSE == bsl_BootQuery() )      {	 bsl_AutoBoot();      }   } /* end if we are not set to go directly to shell mode */      bsl_InstallSWI();   bsl_InstallIRQ();   cb = ModuleAdd( &ModuleHead );   if ( NULL != cb )   {      (*cb)();   }   dispMode( 1 );		/* set the 7 segment display */   SetLEDs( 0x3 );   bsl_main();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -