26 lines
901 B
C
26 lines
901 B
C
#ifndef __ADS1278_H
|
|
#define __ADS1278_H
|
|
|
|
#include "./SYSTEM/sys/sys.h"
|
|
#include "./SYSTEM/delay/delay.h"
|
|
#include "./SYSTEM/ADS1278_SPI/ADS1278_SPI.h"
|
|
#include "./SYSTEM/usart/usart.h"
|
|
|
|
/*DRDY数据就绪信号*/
|
|
#define ADS1278_DRDY_Pin GPIO_PIN_11
|
|
#define ADS1278_DRDY_GPIO_Port GPIOG
|
|
#define ADS1278_DRDY_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG口时钟使能 */
|
|
|
|
/*FORMAT设别配置信号*/
|
|
#define ADS1278_FORMAT_Pin GPIO_PIN_14
|
|
#define ADS1278_FORMAT_GPIO_Port GPIOG
|
|
#define ADS1278_FORMAT_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG口时钟使能 */
|
|
|
|
/*SYNC芯片同步复位信号*/
|
|
#define ADS1278_SYNC_Pin GPIO_PIN_15
|
|
#define ADS1278_SYNC_GPIO_Port GPIOG
|
|
#define ADS1278_SYNC_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG口时钟使能 */
|
|
|
|
void ADS1278_Init(void);
|
|
void ADS1278_Reset(void);
|
|
#endif |