144 lines
4.1 KiB
C
144 lines
4.1 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 "stm32h7xx_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 A16_Pin GPIO_PIN_0
|
|
#define A16_GPIO_Port GPIOC
|
|
#define A15_Pin GPIO_PIN_1
|
|
#define A15_GPIO_Port GPIOC
|
|
#define A14_Pin GPIO_PIN_2
|
|
#define A14_GPIO_Port GPIOC
|
|
#define A13_Pin GPIO_PIN_3
|
|
#define A13_GPIO_Port GPIOC
|
|
#define A12_Pin GPIO_PIN_0
|
|
#define A12_GPIO_Port GPIOA
|
|
#define A11_Pin GPIO_PIN_1
|
|
#define A11_GPIO_Port GPIOA
|
|
#define A10_Pin GPIO_PIN_2
|
|
#define A10_GPIO_Port GPIOA
|
|
#define A9_Pin GPIO_PIN_3
|
|
#define A9_GPIO_Port GPIOA
|
|
#define A8_Pin GPIO_PIN_4
|
|
#define A8_GPIO_Port GPIOA
|
|
#define A7_Pin GPIO_PIN_5
|
|
#define A7_GPIO_Port GPIOA
|
|
#define A6_Pin GPIO_PIN_6
|
|
#define A6_GPIO_Port GPIOA
|
|
#define A5_Pin GPIO_PIN_7
|
|
#define A5_GPIO_Port GPIOA
|
|
#define A4_Pin GPIO_PIN_4
|
|
#define A4_GPIO_Port GPIOC
|
|
#define A3_Pin GPIO_PIN_5
|
|
#define A3_GPIO_Port GPIOC
|
|
#define A2_Pin GPIO_PIN_0
|
|
#define A2_GPIO_Port GPIOB
|
|
#define A1_Pin GPIO_PIN_1
|
|
#define A1_GPIO_Port GPIOB
|
|
#define STATUS1_Pin GPIO_PIN_2
|
|
#define STATUS1_GPIO_Port GPIOB
|
|
#define STATUS2_Pin GPIO_PIN_10
|
|
#define STATUS2_GPIO_Port GPIOB
|
|
#define STATUS_R_Pin GPIO_PIN_14
|
|
#define STATUS_R_GPIO_Port GPIOB
|
|
#define STATUS_G_Pin GPIO_PIN_15
|
|
#define STATUS_G_GPIO_Port GPIOB
|
|
#define WS1_Pin GPIO_PIN_6
|
|
#define WS1_GPIO_Port GPIOC
|
|
#define WS2_Pin GPIO_PIN_7
|
|
#define WS2_GPIO_Port GPIOC
|
|
#define PWM2_2_Pin GPIO_PIN_9
|
|
#define PWM2_2_GPIO_Port GPIOC
|
|
#define PWM1_1_Pin GPIO_PIN_8
|
|
#define PWM1_1_GPIO_Port GPIOA
|
|
#define PWM1_2_Pin GPIO_PIN_9
|
|
#define PWM1_2_GPIO_Port GPIOA
|
|
#define PWM1_3_Pin GPIO_PIN_10
|
|
#define PWM1_3_GPIO_Port GPIOA
|
|
#define PWM1_4_Pin GPIO_PIN_11
|
|
#define PWM1_4_GPIO_Port GPIOA
|
|
#define STATUS_B_Pin GPIO_PIN_12
|
|
#define STATUS_B_GPIO_Port GPIOA
|
|
#define D1_IC_Pin GPIO_PIN_15
|
|
#define D1_IC_GPIO_Port GPIOA
|
|
#define D2_Pin GPIO_PIN_10
|
|
#define D2_GPIO_Port GPIOC
|
|
#define D3_Pin GPIO_PIN_11
|
|
#define D3_GPIO_Port GPIOC
|
|
#define D4_IC_Pin GPIO_PIN_12
|
|
#define D4_IC_GPIO_Port GPIOC
|
|
#define D5_Pin GPIO_PIN_2
|
|
#define D5_GPIO_Port GPIOD
|
|
#define D6_Pin GPIO_PIN_4
|
|
#define D6_GPIO_Port GPIOB
|
|
#define PWM2_1_Pin GPIO_PIN_5
|
|
#define PWM2_1_GPIO_Port GPIOB
|
|
#define PWM3_1_Pin GPIO_PIN_6
|
|
#define PWM3_1_GPIO_Port GPIOB
|
|
#define PWM3_2_Pin GPIO_PIN_7
|
|
#define PWM3_2_GPIO_Port GPIOB
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|