代码搜索结果

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

s3c44b0-spi.h

#ifndef __S3C44B0_SPI_H__ #define __S3C44B0_SPI_H__ #define SPI_IOCTRL_WFORZLG7289 0x1 #define SPI_IOCTRL_WFORMAX504 0x2 #define SPI_IOCTRL_RW 0x3 typedef struct _spi_rw{ char *buffer; int size;

s3c44b0-spi.h

#ifndef __S3C44B0_SPI_H__ #define __S3C44B0_SPI_H__ #define SPI_IOCTRL_WFORZLG7289 0x1 #define SPI_IOCTRL_WFORMAX504 0x2 #define SPI_IOCTRL_RW 0x3 typedef struct _spi_rw{ char *buffer; int size;

s3c44b0-spi.h

#ifndef __S3C44B0_SPI_H__ #define __S3C44B0_SPI_H__ #define SPI_IOCTRL_WFORZLG7289 0x1 #define SPI_IOCTRL_WFORMAX504 0x2 #define SPI_IOCTRL_RW 0x3 typedef struct _spi_rw{ char *buffer; int size;

main._c

/************************************************************ Copyright (C) 1995-2002 Pumpkin, Inc. and its Licensor(s). Freely distributable. $Source: C:\\RCS\\d\\salvo\\tut\\tu5\\main.c,v $ $

main.c

/************************************************************ Copyright (C) 1995-2002 Pumpkin, Inc. and its Licensor(s). Freely distributable. $Source: C:\\RCS\\d\\salvo\\tut\\tu5\\main.c,v $ $

spihw.h

#ifndef __SPIHW_H #define __SPIHW_H extern void SPI_init( volatile unsigned long *spi_port, // SPI Port unsigned char cs_pin, // CS# unsigned char pclkdiv, // number of PCLK

main.c

//#define XRDY 0X0002 //#define RRDY 0X0002 #define nop asm(" NOP ") #define set_spi_cs() SPSD |= 0X0008 #define clr_spi_cs() SPSD &= 0XFFF7 #define set_spi_clk() SPSD |= 0X0002 #define

spisubs.c

#include #include #include "spiSubs.h" #define MODE_SPICS ADPCFGbits.PCFG2 volatile int WaitLoop ; void Init_SPI(void) { unsigned int config1 , config2 ;

cc2500spi.c

// WWW.MCURF.COM #include #include "spi_wr.h" #include "regssrf04.h" #include "IO.H" void SPI_WAIT() { unsigned char i; for (i=0; i

flash.c

#include "Flash.h" #ifdef _USE_ONCHIP_FLASH /* ************************************************************************************* * 片上FLASH操作 ****************