feat: KT mBMS 펌웨어 3종(HW1/2/3) 및 통합 빌드 환경 초기 커밋 (V4.0.0.1)
This commit is contained in:
24
mBMS_APP_V3117/HARDWARE/spi2.h
Normal file
24
mBMS_APP_V3117/HARDWARE/spi2.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef __SPI2_H
|
||||
#define __SPI2_H
|
||||
#include "sys.h"
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//This program is for educational purposes only, without the author's permission, may not be used for any other purpose
|
||||
//ALIENTEK STM32F4 Explorer Board
|
||||
//SPI Driver code
|
||||
//Hot Atomic @ALIENTEK
|
||||
//Forum: www.openedv.com
|
||||
//Date modified: 2014/5/6
|
||||
//Version: V1.0
|
||||
//All rights reserved pirated reserved.
|
||||
//Copyright(C) Guangzhou wing electronic technology limited company 2009-2019
|
||||
//All rights reserved
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
void SPI2_Init(void); //Initialize SPI2
|
||||
void SPI2_SetSpeed(u8 SpeedSet); //Set SPI2 speed
|
||||
u8 SPI2_ReadWriteByte(u16 TxData, u16* RxData, u32 t_us); //SPI2 bus read/write bytes
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user