代码搜索结果

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

spi.c

/* SPI接口子程序,供CH374子程序库调用 */ UINT8 CH374_READ_REGISTER( UINT8 mAddr ) /* 外部定义的被CH374程序库调用的子程序,从指定寄存器读取数据 */ { UINT8 d; Spi374Start( mAddr, CMD_SPI_374READ ); d = Spi374InByte( ); Spi374Sto

spi.c

/* SPI接口子程序,供CH374子程序库调用 */ UINT8 CH374_READ_REGISTER( UINT8 mAddr ) /* 外部定义的被CH374程序库调用的子程序,从指定寄存器读取数据 */ { UINT8 d; Spi374Start( mAddr, CMD_SPI_374READ ); d = Spi374InByte( ); Spi374Sto

spi.c

/* SPI接口子程序,供CH374子程序库调用 */ UINT8 CH374_READ_REGISTER( UINT8 mAddr ) /* 外部定义的被CH374程序库调用的子程序,从指定寄存器读取数据 */ { UINT8 d; Spi374Start( mAddr, CMD_SPI_374READ ); d = Spi374InByte( ); Spi374Sto

spi.h

#ifndef INC_SPI_H #define INC_SPI_H #include "types.h" #include "LPC21xx.h" #include "sysdefs.h" #define MAXIM_SET_BAUD_MASK 0x000f #define MAXIM_B600 0xf #define MAXIM_B1200 0xe #define MAXIM_B24

spi.c

#include #include void SPI_init(void) { SSPEN = 1; //Enable ssp module TRISC5 = 0; //SDO 输出 TRISC4 = 1; //SDI 输入 TRISC3 = 0; //SCK 主控模式为输出 SSPCON &= 0xF0; //cle

spi.pjt

; Code Composer Project File, Version 2.0 (do not modify or remove this line) [Project Settings] ProjectName="spi" ProjectDir="C:\ti\myprojects\spi\" ProjectType=Executable CPUFamily=TMS320C28X

spi总线.c

#include #include #include unsigned int i; void port_init(void) { PORTA = 0xFF; DDRA = 0x00; PORTB = 0xFF; DDRB = 0x00; PORTC = 0x00; DDRC = 0xFF;