46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
|
#ifndef __SPI3_H
|
|||
|
#define __SPI3_H
|
|||
|
#include "sys.h"
|
|||
|
|
|||
|
/*********************************************************************************
|
|||
|
___ _ _____ _____ _ _ _____ _____ _ __
|
|||
|
/ _ \ | | |_ _|| ___|| \ | ||_ _|| ___|| | / /
|
|||
|
/ /_\ \| | | | | |__ | \| | | | | |__ | |/ /
|
|||
|
| _ || | | | | __| | . ` | | | | __| | \
|
|||
|
| | | || |_____| |_ | |___ | |\ | | | | |___ | |\ \
|
|||
|
\_| |_/\_____/\___/ \____/ \_| \_/ \_/ \____/ \_| \_/
|
|||
|
|
|||
|
* ******************************************************************************
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><EFBFBD>ѧϰʹ<EFBFBD>ã<EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><EFBFBD><EFBFBD>;
|
|||
|
* ALIENTEK Pandora STM32L475 IOT<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* SPI3<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD><EFBFBD>@ALIENTEK
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:2018/10/27
|
|||
|
* <EFBFBD>汾<EFBFBD><EFBFBD>V1.0
|
|||
|
* <EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* Copyright(C) <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾ 2014-2024
|
|||
|
* All rights reserved
|
|||
|
* ******************************************************************************
|
|||
|
* <EFBFBD><EFBFBD>ʼ<EFBFBD>汾
|
|||
|
* ******************************************************************************/
|
|||
|
|
|||
|
void SPI3_Init(void);
|
|||
|
void SPI3_SetSpeed(u8 SPI_BaudRatePrescaler);
|
|||
|
u8 SPI3_ReadWriteByte(u8 TxData);
|
|||
|
u8 SPI3_WriteByte(u8 *TxData,u16 size);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|