|
/******************************************************************************
|
* Copyright (C) 2014-2015 HangZhou SiZhu Co.,LTD.
|
*
|
*-----------------------------------------------------------------------------
|
* File: spi.h
|
* Description: head file of spi.c used to receieve and send data
|
* Author: Lishoujian (867693272@qq.com)
|
* Date: Jan 8, 2015
|
*****************************************************************************/
|
|
/* ----------------------- Platform includes --------------------------------*/
|
#ifndef __SPI_H
|
#define __SPI_H
|
#include "sys.h"
|
|
|
|
#define PGA116_SPI_NUM SPI1
|
#define GP22_SPI_NUM SPI2
|
#define Fram_Flash_SPI_NUM SPI3
|
|
void PGA116_SPI_Init(void);
|
void GP22_SPI_Init(void);
|
void Fram_Flash_SPI_Init(void);
|
|
|
u8 SPI1_ReadWriteByte(u8 TxData); //SPI receive and send data
|
u8 SPI3_ReadWriteByte(u8 TxData);
|
u8 SPI2_ReadWriteByte(u8 TxData);
|
|
#endif
|