120 lines
3.6 KiB
C
120 lines
3.6 KiB
C
/* USER CODE BEGIN Header */
|
|
/**
|
|
******************************************************************************
|
|
* @file : main.h
|
|
* @brief : Header for main.c file.
|
|
* This file contains the common defines of the application.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2025 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
/* USER CODE END Header */
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f1xx_hal.h"
|
|
|
|
/* Private includes ----------------------------------------------------------*/
|
|
/* USER CODE BEGIN Includes */
|
|
|
|
/* USER CODE END Includes */
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN ET */
|
|
|
|
/* USER CODE END ET */
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* USER CODE BEGIN EC */
|
|
|
|
/* USER CODE END EC */
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN EM */
|
|
|
|
/* USER CODE END EM */
|
|
|
|
/* Exported functions prototypes ---------------------------------------------*/
|
|
void Error_Handler(void);
|
|
|
|
/* USER CODE BEGIN EFP */
|
|
|
|
/* USER CODE END EFP */
|
|
|
|
/* Private defines -----------------------------------------------------------*/
|
|
#define Touch_CS_Pin GPIO_PIN_0
|
|
#define Touch_CS_GPIO_Port GPIOC
|
|
#define Touch_INT_Pin GPIO_PIN_1
|
|
#define Touch_INT_GPIO_Port GPIOC
|
|
#define EncA_Pin GPIO_PIN_0
|
|
#define EncA_GPIO_Port GPIOA
|
|
#define EncB_Pin GPIO_PIN_1
|
|
#define EncB_GPIO_Port GPIOA
|
|
#define WiFi_TX_Pin GPIO_PIN_2
|
|
#define WiFi_TX_GPIO_Port GPIOA
|
|
#define WiFi_RX_Pin GPIO_PIN_3
|
|
#define WiFi_RX_GPIO_Port GPIOA
|
|
#define Flash_CS_Pin GPIO_PIN_4
|
|
#define Flash_CS_GPIO_Port GPIOA
|
|
#define Flash_SCK_Pin GPIO_PIN_5
|
|
#define Flash_SCK_GPIO_Port GPIOA
|
|
#define Flash_D0_Pin GPIO_PIN_6
|
|
#define Flash_D0_GPIO_Port GPIOA
|
|
#define Flash_DI_Pin GPIO_PIN_7
|
|
#define Flash_DI_GPIO_Port GPIOA
|
|
#define WiFi_En_Pin GPIO_PIN_4
|
|
#define WiFi_En_GPIO_Port GPIOC
|
|
#define Buzzer_Pin GPIO_PIN_2
|
|
#define Buzzer_GPIO_Port GPIOB
|
|
#define Debug_TX_Pin GPIO_PIN_10
|
|
#define Debug_TX_GPIO_Port GPIOB
|
|
#define Debug_RX_Pin GPIO_PIN_11
|
|
#define Debug_RX_GPIO_Port GPIOB
|
|
#define SD_Detect_Pin GPIO_PIN_6
|
|
#define SD_Detect_GPIO_Port GPIOC
|
|
#define SD_D0_Pin GPIO_PIN_8
|
|
#define SD_D0_GPIO_Port GPIOC
|
|
#define RS232_TX_Pin GPIO_PIN_9
|
|
#define RS232_TX_GPIO_Port GPIOA
|
|
#define RS232_RX_Pin GPIO_PIN_10
|
|
#define RS232_RX_GPIO_Port GPIOA
|
|
#define SWDIO_Pin GPIO_PIN_13
|
|
#define SWDIO_GPIO_Port GPIOA
|
|
#define SWDCK_Pin GPIO_PIN_14
|
|
#define SWDCK_GPIO_Port GPIOA
|
|
#define SD_CK_Pin GPIO_PIN_12
|
|
#define SD_CK_GPIO_Port GPIOC
|
|
#define SD_CMD_Pin GPIO_PIN_2
|
|
#define SD_CMD_GPIO_Port GPIOD
|
|
#define Touch_SCK_Pin GPIO_PIN_3
|
|
#define Touch_SCK_GPIO_Port GPIOB
|
|
#define Touch__DO_Pin GPIO_PIN_4
|
|
#define Touch__DO_GPIO_Port GPIOB
|
|
#define Touch_DI_Pin GPIO_PIN_5
|
|
#define Touch_DI_GPIO_Port GPIOB
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|