代码搜索结果
找到约 10,000 项符合
SPI 的代码
spi.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to
spi.c
#include
void main(void)
{
volatile unsigned int i;
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog
P1OUT = 0x00; // P1.0 setup
spi.h
#ifndef SPI_HPP
#define SPI_HPP
#include "..\LIB\ArmOS\ArmLib.h"
#include "..\LIB\ArmOS\ArmOs.h"
class CSpiSerial : public CAbsSerial
{
virtual int PutChar(uint8 c);
virtual class CQueue
spi.cpp
#include
#include
#include "SPI.h"
//----------------------------- internal definitions ----------------------
//缓冲区定义
#ifndef COMM_4_XMIT_SIZE
#define COMM_4_XMIT_
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);
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