source: trunk/firmware_cube/Core/Inc/main.h

Last change on this file was 7, checked in by f.jahn, 5 months ago
File size: 3.2 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3  ******************************************************************************
4  * @file           : main.h
5  * @brief          : Header for main.c file.
6  *                   This file contains the common defines of the application.
7  ******************************************************************************
8  * @attention
9  *
10  * Copyright (c) 2025 STMicroelectronics.
11  * All rights reserved.
12  *
13  * This software is licensed under terms that can be found in the LICENSE file
14  * in the root directory of this software component.
15  * If no LICENSE file comes with this software, it is provided AS-IS.
16  *
17  ******************************************************************************
18  */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __MAIN_H
23#define __MAIN_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32c0xx_hal.h"
31
32/* Private includes ----------------------------------------------------------*/
33/* USER CODE BEGIN Includes */
34
35/* USER CODE END Includes */
36
37/* Exported types ------------------------------------------------------------*/
38/* USER CODE BEGIN ET */
39
40/* USER CODE END ET */
41
42/* Exported constants --------------------------------------------------------*/
43/* USER CODE BEGIN EC */
44
45/* USER CODE END EC */
46
47/* Exported macro ------------------------------------------------------------*/
48/* USER CODE BEGIN EM */
49
50/* USER CODE END EM */
51
52/* Exported functions prototypes ---------------------------------------------*/
53void Error_Handler(void);
54
55/* USER CODE BEGIN EFP */
56
57/* USER CODE END EFP */
58
59/* Private defines -----------------------------------------------------------*/
60#define GPIO_INPUT_MODE_B3_Pin GPIO_PIN_7
61#define GPIO_INPUT_MODE_B3_GPIO_Port GPIOB
62#define GPIO_INPUT_MODE_B1_Pin GPIO_PIN_14
63#define GPIO_INPUT_MODE_B1_GPIO_Port GPIOC
64#define GPIO_INPUT_MODE_B0_Pin GPIO_PIN_15
65#define GPIO_INPUT_MODE_B0_GPIO_Port GPIOC
66#define GPIO_INPUT_LVP_Pin GPIO_PIN_0
67#define GPIO_INPUT_LVP_GPIO_Port GPIOA
68#define GPIO_INPUT_OVP_Pin GPIO_PIN_1
69#define GPIO_INPUT_OVP_GPIO_Port GPIOA
70#define GPIO_INPUT_BTN_ON_Pin GPIO_PIN_2
71#define GPIO_INPUT_BTN_ON_GPIO_Port GPIOA
72#define GPIO_INPUT_BTN_OFF_Pin GPIO_PIN_3
73#define GPIO_INPUT_BTN_OFF_GPIO_Port GPIOA
74#define GPIO_OUTPUT_LED_ON_Pin GPIO_PIN_4
75#define GPIO_OUTPUT_LED_ON_GPIO_Port GPIOA
76#define GPIO_OUTPUT_LED_ERROR_Pin GPIO_PIN_5
77#define GPIO_OUTPUT_LED_ERROR_GPIO_Port GPIOA
78#define GPIO_INPUT_FAULT_Pin GPIO_PIN_6
79#define GPIO_INPUT_FAULT_GPIO_Port GPIOA
80#define GPIO_OUTPUT_RELAIS_SET_Pin GPIO_PIN_7
81#define GPIO_OUTPUT_RELAIS_SET_GPIO_Port GPIOA
82#define GPIO_OUTPUT_RELAIS_RESET_Pin GPIO_PIN_8
83#define GPIO_OUTPUT_RELAIS_RESET_GPIO_Port GPIOA
84#define GPIO_OUTPUT_BUZZER_Pin GPIO_PIN_11
85#define GPIO_OUTPUT_BUZZER_GPIO_Port GPIOA
86#define GPIO_INPUT_BMS_Pin GPIO_PIN_12
87#define GPIO_INPUT_BMS_GPIO_Port GPIOA
88#define GPIO_INPUT_MODE_B2_Pin GPIO_PIN_6
89#define GPIO_INPUT_MODE_B2_GPIO_Port GPIOB
90
91/* USER CODE BEGIN Private defines */
92
93/* USER CODE END Private defines */
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* __MAIN_H */
Note: See TracBrowser for help on using the repository browser.