forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

周巍
2024-04-11 91ef77c00ed797b1048c5187f416e351e646a009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
/******************************************************************************
 * 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