文件名称:SPI
介绍说明--下载内容均来自于网络,请自行研究使用
6410嵌入式驱动程序,很有用
//0X1 txon 0x2 RXON
#define CLK_CFG1 ( *((volatile unsigned long *)0xE1400004) )//0X
#define FB_CLK_SEL1 ( *((volatile unsigned long *)0xE140002C) )
#define SWAP_CFG1 ( *((volatile unsigned long *)0xE1400028) )
#define PENDING_CLR_REG1 ( *((volatile unsigned long *)0xE1400024) )
#define PACKET_CNT_REG1 ( *((volatile unsigned long *)0xE1400020) )
#define SPI_RX_DATA1 ( *((volatile unsigned long *)0xE140001C) )
#define SPI_TX_DATA1 ( *((volatile unsigned long *)0xE1400018) )
#define SPI_STATUS1 ( *((volatile unsigned long *)0xE1400014) )
#define SPI_INT_EN1 ( *((volatile unsigned long *)0xE1400010) )
#define CS_REG1 ( *((volatile unsigned long *)0xE140000C) )
#define MODE_CFG1 ( *((volatile unsigned long *)0xE1400008) )
#define CLK GPBCON[4]
#define MISO GPBCON[6]
#define MOSI GPBCON[7]
#define CSB GPBCON[5] -((volatile unsigned long*)0xE1400000) ) //0X1 txon 0x2 RXON
#define CLK_CFG1 (*((volatile unsigned long*)0xE1400004) )//0X
#define FB_CLK_SEL1 (*((volatile unsigned long*)0xE140002C) )
#define SWAP_CFG1 (*((volatile unsigned long*)0xE1400028) )
#define PENDING_CLR_REG1 (*((volatile unsigned long*)0xE1400024) )
#define PACKET_CNT_REG1 (*((volatile unsigned long*)0xE1400020) )
#define SPI_RX_DATA1 (*((volatile unsigned long*)0xE140001C) )
#define SPI_TX_DATA1 (*((volatile unsigned long*)0xE1400018) )
#define SPI_STATUS1 (*((volatile unsigned long*)0xE1400014) )
#define SPI_INT_EN1 (*((volatile unsigned long*)0xE1400010) )
#define CS_REG1 (*((volatile unsigned long*)0xE140000C) )
#define MODE_CFG1 (*((volatile unsigned long*)0xE1400008) )
#define CLK GPBCON[4]
#define MISO GPBCON[6]
#define MOSI GPBCON[7]
#define CSB GPBCON[5]
//0X1 txon 0x2 RXON
#define CLK_CFG1 ( *((volatile unsigned long *)0xE1400004) )//0X
#define FB_CLK_SEL1 ( *((volatile unsigned long *)0xE140002C) )
#define SWAP_CFG1 ( *((volatile unsigned long *)0xE1400028) )
#define PENDING_CLR_REG1 ( *((volatile unsigned long *)0xE1400024) )
#define PACKET_CNT_REG1 ( *((volatile unsigned long *)0xE1400020) )
#define SPI_RX_DATA1 ( *((volatile unsigned long *)0xE140001C) )
#define SPI_TX_DATA1 ( *((volatile unsigned long *)0xE1400018) )
#define SPI_STATUS1 ( *((volatile unsigned long *)0xE1400014) )
#define SPI_INT_EN1 ( *((volatile unsigned long *)0xE1400010) )
#define CS_REG1 ( *((volatile unsigned long *)0xE140000C) )
#define MODE_CFG1 ( *((volatile unsigned long *)0xE1400008) )
#define CLK GPBCON[4]
#define MISO GPBCON[6]
#define MOSI GPBCON[7]
#define CSB GPBCON[5] -((volatile unsigned long*)0xE1400000) ) //0X1 txon 0x2 RXON
#define CLK_CFG1 (*((volatile unsigned long*)0xE1400004) )//0X
#define FB_CLK_SEL1 (*((volatile unsigned long*)0xE140002C) )
#define SWAP_CFG1 (*((volatile unsigned long*)0xE1400028) )
#define PENDING_CLR_REG1 (*((volatile unsigned long*)0xE1400024) )
#define PACKET_CNT_REG1 (*((volatile unsigned long*)0xE1400020) )
#define SPI_RX_DATA1 (*((volatile unsigned long*)0xE140001C) )
#define SPI_TX_DATA1 (*((volatile unsigned long*)0xE1400018) )
#define SPI_STATUS1 (*((volatile unsigned long*)0xE1400014) )
#define SPI_INT_EN1 (*((volatile unsigned long*)0xE1400010) )
#define CS_REG1 (*((volatile unsigned long*)0xE140000C) )
#define MODE_CFG1 (*((volatile unsigned long*)0xE1400008) )
#define CLK GPBCON[4]
#define MISO GPBCON[6]
#define MOSI GPBCON[7]
#define CSB GPBCON[5]
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SPI.c