This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
CMS3in1/1.Cabin/4.MISC/ADS1278/Drivers/SYSTEM/spi1/spi1.h

29 lines
372 B
C
Raw Permalink Normal View History

#ifndef __SPI_H__
#define __SPI_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f4xx_hal.h"
extern SPI_HandleTypeDef hspi1;
#define SCLK_Pin GPIO_PIN_3
#define SCLK_GPIO_Port GPIOB
#define DOUT1_Pin GPIO_PIN_4
#define DOUT1_GPIO_Port GPIOB
void MX_SPI1_Init(void);
uint8_t SPI_ReceiveData(SPI_HandleTypeDef* hspi);
#ifdef __cplusplus
}
#endif
#endif