Initial commit

This commit is contained in:
Yury Shuvakin
2022-11-12 23:42:55 +03:00
parent 9a18b5d8e7
commit 190522943f
228 changed files with 141037 additions and 0 deletions

10
Core/Inc/driverHWSPI1.h Normal file
View File

@@ -0,0 +1,10 @@
#include "stm32f1xx_hal.h"
#include "stdbool.h"
#include "stdlib.h"
#include "string.h"
#define driverHWSPI1DefaultTimeout 100
void driverHWSPI1Init(GPIO_TypeDef* GPIOCSPort, uint16_t GPIO_CSPin);
bool driverHWSPI1Write(uint8_t *writeBuffer, uint8_t noOfBytesToWrite,GPIO_TypeDef* GPIOCSPort, uint16_t GPIO_CSPin);
bool driverHWSPI1WriteRead(uint8_t *writeBuffer, uint8_t noOfBytesToWrite, uint8_t *readBuffer, uint8_t noOfBytesToRead,GPIO_TypeDef* GPIOCSPort, uint16_t GPIO_CSPin);