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

📄 gpio.h

📁 在潜入市linux 下烧写vivi的原代码 arm上成功执行
💻 H
字号:
/* ./gpio.h*  
*Copyright(C) 2005  lizhenjun
*Modify by suney 2005.9.15
*Gpio read and write due to the baseAddr and the shiftAddr
*we put the gpio on the banker 1 of the arm ,so the default BaseAddr is 
*0xfa000000(0x08000000) ,if the bank changed,we can select the banker 
*/
//#include "banker.h"
#include "Macro.h"
unsigned short int GpioRead(unsigned int shiftAddr);
unsigned short int GpioWrite(unsigned int shiftAddr,unsigned short int data);
unsigned int GpioBaseAddrSet(unsigned int bankerAddr);
unsigned int ISARead8(unsigned int shiftAddr,unsigned char *a,unsigned int size);
unsigned char ISAWrite8(unsigned int shiftAddr,unsigned char *a,unsigned int size);
unsigned short int ISARead16(unsigned int shiftAddr,unsigned short int *a,unsigned int size);

unsigned short int ISAWrite16(unsigned int shiftAddr,unsigned short int *a,unsigned int size);
int Num_to_Port(int num,int *port,int *offset);
int set_gpio(int portnum,int value);
int write_gpio(int portnum,unsigned short int value);
int read_gpio(int portnum);
int LCD_parsetup();
int LPT_parsetup();
int  LCD_outport(int portnum,int num);
unsigned short int  LPT_outport(unsigned short int num);
unsigned short int LPT_inport(unsigned short int* num);
unsigned short int SetLed(unsigned short int ledid);
int Jtag_write_gpio(int portnum,unsigned short int value);
int Jtag_read_gpio(int portnum);

⌨️ 快捷键说明

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