?? io.h
字號:
/*================================================================== * * This file is part of a small Nand flash bootloader designed to * be loaded via EP93xx SPI boot. * * Copyright Cirrus Logic Corporation, 2007. All rights reserved * ==================================================================*/#ifndef _io_h_#define _io_h_#include <types.h>#include <regs.h>#define OUT32(val, port) *((volatile u32 *) (port)) = (val)#define OUT16(val, port) *((volatile u16 *) (port)) = (val)#define OUT8(val, port) *((volatile u8 *) (port)) = (val)#define IN32(port) *((volatile u32 *) (port))#define IN16(port) *((volatile u16 *) (port))#define IN8(port) *((volatile u8 *) (port))#define OUT32UNL(val, port) { *((volatile u32 *) (SWLOCK)) = 0xaa; *((volatile u32 *) (port)) = (val); }#define SDRAM_MAP (0x100 | SDRAM_LOCATION)#define SDRAM_LOAD_ADDRESS (0x00008000 | SDRAM_LOCATION)#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -