代码搜索结果
找到约 10,000 项符合
SPI 的代码
drv_spi.h
#ifndef _DRV_SPI
#define _DRV_SPI
#define TIMOD_T 0x0001
#define TIMOD_R 0x0000
void Drv_Config_slave_read();
void Drv_config_slave_write();
void Drv_Config_master_read();
void Dr
spi_slaver.mak
# Generated by the VisualDSP++ IDDE
# Note: Any changes made to this Makefile will be lost the next time the
# matching project file is loaded into the IDDE. If you wish to preserve
# changes,
drv_spi.c
#include
#include "drv_spi.h"
void Drv_Config_slave_read()
{
*pSPI_CTL = (*pSPI_CTL&0xfffc) | TIMOD_R;
}
void Drv_config_slave_write()
{
*pSPI_CTL = (*pSPI_CTL&0xfff
spi_slaver.ldf
/*
** LDF for ADSP-BF533.
**
** There are a number of configuration options that can be specified
** either by compiler flags, or by linker flags directly. The options are:
**
** USE_PROFILER0
spi_init.h
//#define MISO
#define MOSI
drv_spi.h
#ifndef _DRV_SPI
#define _DRV_SPI
#define TIMOD_T 0x0001
#define TIMOD_R 0x0000
void Drv_Config_slave_read();
void Drv_config_slave_write();
void Drv_Config_master_read();
void Dr
spi_master.ldf
/*
** LDF for ADSP-BF533.
**
** There are a number of configuration options that can be specified
** either by compiler flags, or by linker flags directly. The options are:
**
** USE_PROFILER0
spi_master.mak
# Generated by the VisualDSP++ IDDE
# Note: Any changes made to this Makefile will be lost the next time the
# matching project file is loaded into the IDDE. If you wish to preserve
# changes,
drv_spi.c
#include
#include "drv_spi.h"
void Drv_Config_slave_read()
{
*pSPI_CTL = (((*pSPI_CTL)&0xFFFC)|TIMOD_R);
}
void Drv_config_slave_write()
{
*pSPI_CTL |= (((*pSPI_CTL)