代码搜索结果

找到约 10,000 项符合 SPI 的代码

spi.c

#include // change to the appropriate header file #include "spi.h" /* spi_init function should be generated using the AppBuilder */ /* ** SpiWriteByte() writes a byte to the SP

spi.h

/* ** Header file : spi.h */ #if defined(_AVR) /* SPI header for AVR */ #ifndef __SPI__H #define __SPI__H /* ** Constants for SpiInit() */ #define SPI_DATA_ORDER_MSB_FIRST 0x00

spi.c

#include "def.h" extern void Delay(unsigned int nTime); //************************************************************ //*********************************************************** //*****

spi.h

#include "def.h" void config_SPI(); uint write_reg(unsigned char port,unsigned char reg,unsigned char dat); unsigned char read_reg(unsigned char port,unsigned char reg);

spi.c

#include #include "2440addr.h" #include "2440lib.h" #include "spi.h" #include "def.h" #define spi_count 0x80 #define SPI_BUFFER _NONCACHE_STARTADDRESS void __irq Spi_Int(void);