📄 sa1110.h
字号:
/* * $Id: sa1110.h,v 1.1 2002/12/05 22:20:38 telka Exp $ * * Copyright (C) 2002 ETC s.r.o. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Written by Marcel Telka <marcel@telka.sk>, 2002. * */#ifndef SA1110_H#define SA1110_H#include "board.h"#define MAP_APB( pa ) ((pa) & 0x000FFFFF | MEM_VIRT_APB | 0x20000000)#define MAP_SCM( pa ) ((pa) & 0x000FFFFF | MEM_VIRT_SCM | 0x20000000)#define MAP_MPCM( pa ) ((pa) & 0x000FFFFF | MEM_VIRT_MPCM | 0x20000000)#define MAP_ASB( pa ) ((pa) & 0x000FFFFF | MEM_VIRT_ASB | 0x20000000)#define UDC_pointer ((UDC_registers_t*) MAP_APB( UDC_BASE ))#define UART1_pointer ((UART_registers_t*) MAP_APB( UART1_BASE ))#define GPCLK_pointer ((GPCLK_registers_t*) MAP_APB( GPCLK_BASE ))#define UART2_pointer ((UART_registers_t*) MAP_APB( UART2_BASE ))#define HSSP_pointer ((HSSP_registers_t*) MAP_APB( HSSP_BASE ))#define UART3_pointer ((UART_registers_t*) MAP_APB( UART3_BASE ))#define MCP_pointer ((MCP_registers_t*) MAP_APB( MCP_BASE ))#define SSP_pointer ((SSP_registers_t*) MAP_APB( SSP_BASE ))#define OST_pointer ((OST_registers_t*) MAP_SCM( OST_BASE ))#define RTC_pointer ((RTC_registers_t*) MAP_SCM( RTC_BASE ))#define PM_pointer ((PM_registers_t*) MAP_SCM( PM_BASE ))#define RC_pointer ((RC_registers_t*) MAP_SCM( RC_BASE ))#define GPIO_pointer ((GPIO_registers_t*) MAP_SCM( GPIO_BASE ))#define IC_pointer ((IC_registers_t*) MAP_SCM( IC_BASE ))#define PPC_pointer ((PPC_registers_t*) MAP_SCM( PPC_BASE ))#define MC_pointer ((MC_registers_t*) MAP_MPCM( MC_BASE ))#define DMA_pointer ((DMA_registers_t*) MAP_ASB( DMA_BASE ))#define LCD_pointer ((LCD_registers_t*) MAP_ASB( LCD_BASE ))#endif /* SA1110_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -