generated code, added drawings on Silkscreen
This commit is contained in:
137
Software/Code/Core/Inc/main.h
Normal file
137
Software/Code/Core/Inc/main.h
Normal file
@ -0,0 +1,137 @@
|
||||
/* 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 "stm32f3xx_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 LVMS_Vsense_Pin GPIO_PIN_0
|
||||
#define LVMS_Vsense_GPIO_Port GPIOC
|
||||
#define IS10_Pin GPIO_PIN_1
|
||||
#define IS10_GPIO_Port GPIOC
|
||||
#define IS6_Pin GPIO_PIN_2
|
||||
#define IS6_GPIO_Port GPIOC
|
||||
#define IS7_Pin GPIO_PIN_3
|
||||
#define IS7_GPIO_Port GPIOC
|
||||
#define ASMS_Vsense_Pin GPIO_PIN_0
|
||||
#define ASMS_Vsense_GPIO_Port GPIOA
|
||||
#define IS1_Pin GPIO_PIN_1
|
||||
#define IS1_GPIO_Port GPIOA
|
||||
#define IS2_Pin GPIO_PIN_2
|
||||
#define IS2_GPIO_Port GPIOA
|
||||
#define IS9_Pin GPIO_PIN_3
|
||||
#define IS9_GPIO_Port GPIOA
|
||||
#define IS11_Pin GPIO_PIN_4
|
||||
#define IS11_GPIO_Port GPIOF
|
||||
#define IS3_Pin GPIO_PIN_4
|
||||
#define IS3_GPIO_Port GPIOA
|
||||
#define IS8_Pin GPIO_PIN_5
|
||||
#define IS8_GPIO_Port GPIOA
|
||||
#define IS4_Pin GPIO_PIN_6
|
||||
#define IS4_GPIO_Port GPIOA
|
||||
#define IS5_Pin GPIO_PIN_7
|
||||
#define IS5_GPIO_Port GPIOA
|
||||
#define PC_Read_Pin GPIO_PIN_4
|
||||
#define PC_Read_GPIO_Port GPIOC
|
||||
#define IN11_Pin GPIO_PIN_0
|
||||
#define IN11_GPIO_Port GPIOB
|
||||
#define IN12_Pin GPIO_PIN_1
|
||||
#define IN12_GPIO_Port GPIOB
|
||||
#define IN13_Pin GPIO_PIN_10
|
||||
#define IN13_GPIO_Port GPIOB
|
||||
#define IN9_Pin GPIO_PIN_11
|
||||
#define IN9_GPIO_Port GPIOB
|
||||
#define IN3_Pin GPIO_PIN_12
|
||||
#define IN3_GPIO_Port GPIOB
|
||||
#define IN8_Pin GPIO_PIN_13
|
||||
#define IN8_GPIO_Port GPIOB
|
||||
#define IN5_Pin GPIO_PIN_14
|
||||
#define IN5_GPIO_Port GPIOB
|
||||
#define IN4_Pin GPIO_PIN_15
|
||||
#define IN4_GPIO_Port GPIOB
|
||||
#define LED4_Pin GPIO_PIN_6
|
||||
#define LED4_GPIO_Port GPIOC
|
||||
#define LED3_Pin GPIO_PIN_7
|
||||
#define LED3_GPIO_Port GPIOC
|
||||
#define LED2_Pin GPIO_PIN_8
|
||||
#define LED2_GPIO_Port GPIOC
|
||||
#define LED1_Pin GPIO_PIN_9
|
||||
#define LED1_GPIO_Port GPIOC
|
||||
#define IN2_Pin GPIO_PIN_8
|
||||
#define IN2_GPIO_Port GPIOA
|
||||
#define IN1_Pin GPIO_PIN_9
|
||||
#define IN1_GPIO_Port GPIOA
|
||||
#define IN6_Pin GPIO_PIN_10
|
||||
#define IN6_GPIO_Port GPIOA
|
||||
#define DSEL0_Pin GPIO_PIN_4
|
||||
#define DSEL0_GPIO_Port GPIOB
|
||||
#define DSEL1_Pin GPIO_PIN_5
|
||||
#define DSEL1_GPIO_Port GPIOB
|
||||
#define PC_EN_Pin GPIO_PIN_6
|
||||
#define PC_EN_GPIO_Port GPIOB
|
||||
#define IN7_Pin GPIO_PIN_8
|
||||
#define IN7_GPIO_Port GPIOB
|
||||
#define IN10_Pin GPIO_PIN_9
|
||||
#define IN10_GPIO_Port GPIOB
|
||||
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __MAIN_H */
|
||||
Reference in New Issue
Block a user