代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.err
"spi.c", line 98: Warning: C2917W: no side effect in void context: 'unary *'
"spi.c", line 154: Warning: C2870W: variable 'i' declared but not used
"spi.c", line 186: Warning: C2892E: signed c
spi.h
#ifndef __SPI_H__
#define __SPI_H__
void Test_Spi_MS_int(void);
void Test_Spi_MS_poll(void);
void Test_Spi_M_Tx_DMA1(void);
void Test_Spi_M_Rx_DMA1(void);
void Test_Spi_S_Tx_DMA1(void);
voi
spi.c
sbit CS=P3^5;
sbit CLK= P1^5;
sbit DataI=P1^7;
sbit DataO=P1^6;
#define SD_Disable() CS=1 //片选关
#define SD_Enable() CS=0 //片选开
unsigned char SPI_TransferByte(unsigned char val)
spi.c
/********************************************************************************************************/
#define IN_SPI
#include "config.h"
#ifndef SPI_MOD
#define SPI_MOD 0
#endif
spi.h
/****************************************Copyright (c)**************************************************
**********************************************************************************************
spi.c
/*
Copyright (C) 2000 Jesper Hansen .
This file is part of the yampp system.
This program is free software; you can redistribute it and/or
modify it under the term
spi.h
/*
Copyright (C) 2000 Jesper Hansen .
This file is part of the yampp system.
This program is free software; you can redistribute it and/or
modify it under the term
spi.c
/*
** Copyright (C)1999 KVASER AB, http://www.kvaser.com
** This code may be freely distrubuted and used if the source is indicated.
**
*/
// #define PORTBIT(adr, bit) ((unsigned)(&adr)*8+(bit
spi.c
#include "AT91SAM7S64.h"
#include "Board.h"
#include "datatype.h"
#include "spi.h"
extern Byte gl_buffer[];
extern INT16U u16GlBufferPos;
extern Byte SPI_Init;
//---------------
spi.h
#define SPI_CLK_MASK (1