代码搜索结果
找到约 10,000 项符合
SPI 的代码
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
#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.lst
A51 MACRO ASSEMBLER SPI 03/28/2006 09:48:44 PAGE 1
MACRO ASSEMBLER A51 V8.00
OBJECT MODULE PLACED IN SPI.OBJ
ASSEMBLER INVO
spi.a51
;
; Copyright (c) 2004,成都港顺科技发展有限公司
; All rights reserved.
;
; 编 译 器:Keil:C Compiler:7.20;Assembler:7.10
; 工程名称:POS-Test.UV2
; 文件名称:M25P80SendRec.asm
; 摘 要:SPI总线驱动
;
; 单 片 机:uPSD3254
;
slp.spi
#############################################################################
#
# OpenSLP SPI file
#
# Security Parameter Index (SPI) is an unformated string that us used
# by SLP to identify security
spi.c
#include
unsigned char combuf[9];
void init_spi()
{
PCON = 0x00; //smod = 0
TMOD=0x20; //定时器工作在方式2
TH1=0xF2;
TL1=0xF2;
SM0 = 0; //串行口工作在方式2,波特率为9600,采用查询方式工作