📄 platform.c
字号:
/* * File: pb1200/platform.c * * Purpose: Platform glue code * * Notes: * * Author: Eric DeVolder * Date: Jan-26-2004 * * Modifications: * */#include "example.h"/********************************************************************/// Boot Image Locations //staticconst char *const flashAddresses[] = {/*For regression testing purposes:be40 0000 - Encrypted Linux Image (pb1200.elf.pp). Size < 0x300000be00 0000 - Linux Image (pb1200.elf). Size < 0x300000*/#ifdef SECUREBOOT "BE400000",#else "BE000000",#endif// "Nand|7D0", //Nand flash, block 2000 0};staticconst char *const fileNames[] = { "pb1200.rec", "pb1200.elf", "hello.rec", /* "nk.bin", "vmlinux.elf", "vmlinux.rec", */ 0};staticconst void *const jumpAddress = 0x0;/********************************************************************/void platformInit(void){ DPRINTF("Pb1200 platformInit() \n");}/********************************************************************/intplatformGetBootData(const char *const **files, const char *const **addresses, const void **jump){ *files = fileNames; *addresses = flashAddresses; *jump = jumpAddress; return 1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -