文件名称:SPI
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:1.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.