📄 gpio.h.svn-base
字号:
/*****************************************************************************//* This confidential and proprietary software may be used only as authorized *//* by a licensing agreement from STMicroelectronics. *//* In the event of publication, the following notice is applicable: *//* *//* (C) COPYRIGHT 2002 STMicroelectronics *//* Innovative Systems Design Group - Central R&D *//* ALL RIGHTS RESERVED *//* *//* The entire notice above must be reproduced on all authorized copies. *//* *//* -- File: *//* -- Author: Christian Gazzina <christian.gazzina@st.com> *//* -- Description: Include file for GPIO testing *//* *//* -- Modification History: - 1.1 (26/09/2002) *//*****************************************************************************/// $Id: gpio.h,v 1.1 2005/06/27 14:15:39 sp_head Exp $// $Log: gpio.h,v $// Revision 1.1 2005/06/27 14:15:39 sp_head// apb_configuration.h//// Revision 1.1.1.2 2004/12/03 15:34:24 spear// First import from CRD//// Revision 1.1.1.1 2004/12/02 11:07:22 spear// First import from CRD//// // Revision: 1.1 Thu Nov 14 18:44:02 2002 gazzina// First check in#ifndef __GPIO_H_#define __GPIO_H_/* Definizione dei tipi di base */typedef unsigned char uchar;typedef unsigned int uint;#define PIN_IN 1#define PIN_OUT 0void gpioWrite(unsigned char , unsigned char );unsigned char gpioRead(unsigned char );void gpio_test(void);#ifdef __cplusplusextern "C" { /* C declarations in C++ */#endif#define APB_BASE ((volatile uchar *)(0x12006000)) /* changed by Bapi */#define GPP_DIR ((volatile uchar *)(APB_BASE + 0x0000)) #define GPP_DATA ((volatile uchar *)(APB_BASE + 0x0004))#define GPP_DOUT0 ((volatile uchar *)(APB_BASE + 0x0010))#define GPP_DOUT1 ((volatile uchar *)(APB_BASE + 0x0014))#define GPP_DOUT2 ((volatile uchar *)(APB_BASE + 0x0018))#define GPP_DOUT3 ((volatile uchar *)(APB_BASE + 0x001C))#define GPP_DOUT4 ((volatile uchar *)(APB_BASE + 0x0020))#define GPP_DOUT5 ((volatile uchar *)(APB_BASE + 0x0024))#define PORT_DIM 6 /* Numero di pin della porta */#ifdef __cplusplus} /* C declarations in C++ */#endif#endif /* Fine controllo inclusione */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -