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

📄 main.c

📁 牛人张明峰写的bootloader。很有参考价值。和很多freescale的例子不太一样
💻 C
字号:
//=============================================================================
// All the code below are provided for demo purpose only.
// It'll be on your own risk if you like to adopt all or parts of the code into
// your own application.
//
// This is the main entry function in standard C programming
// It's only needed to make boot-loader project complie success.
// It does noting but only jump to the entry of boot-loader
//
// Designed by Paul Zhang (paul.zhang@freescale.com)
// May 10, 2008 
//=============================================================================

#include <hidef.h>        // for EnableInterrupts macro
#include "derivative.h"   // include peripheral declarations

void BootLoader(void);

#pragma CODE_SEG __FAR_SEG DEFAULT

//=============================================================================
// Dummy 'main' function
//=============================================================================
void main(void) {
   asm (jmp BootLoader);      //Jump to Boot-loader routine
}

⌨️ 快捷键说明

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