source: trunk/firmware_v2/SES/inc/main.h @ 17

Last change on this file since 17 was 17, checked in by f.jahn, 9 days ago
File size: 3.2 KB
RevLine 
[17]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/* USER CODE END ET */
40
41/* Exported constants --------------------------------------------------------*/
42/* USER CODE BEGIN EC */
43
44/* USER CODE END EC */
45
46/* Exported macro ------------------------------------------------------------*/
47/* USER CODE BEGIN EM */
48
49/* USER CODE END EM */
50
51/* Exported functions prototypes ---------------------------------------------*/
52void Error_Handler(void);
53
54/* USER CODE BEGIN EFP */
55
56/* USER CODE END EFP */
57
58/* Private defines -----------------------------------------------------------*/
59#define GPIO_INPUT_MODE_B3_Pin GPIO_PIN_7
60#define GPIO_INPUT_MODE_B3_GPIO_Port GPIOB
61#define GPIO_INPUT_MODE_B1_Pin GPIO_PIN_14
62#define GPIO_INPUT_MODE_B1_GPIO_Port GPIOC
63#define GPIO_INPUT_MODE_B0_Pin GPIO_PIN_15
64#define GPIO_INPUT_MODE_B0_GPIO_Port GPIOC
65#define GPIO_INPUT_LVP_Pin GPIO_PIN_0
66#define GPIO_INPUT_LVP_GPIO_Port GPIOA
67#define GPIO_INPUT_OVP_Pin GPIO_PIN_1
68#define GPIO_INPUT_OVP_GPIO_Port GPIOA
69#define GPIO_INPUT_BTN_ON_Pin GPIO_PIN_2
70#define GPIO_INPUT_BTN_ON_GPIO_Port GPIOA
71#define GPIO_INPUT_BTN_OFF_Pin GPIO_PIN_3
72#define GPIO_INPUT_BTN_OFF_GPIO_Port GPIOA
73#define GPIO_OUTPUT_LED_ON_Pin GPIO_PIN_4
74#define GPIO_OUTPUT_LED_ON_GPIO_Port GPIOA
75#define GPIO_OUTPUT_LED_ERROR_Pin GPIO_PIN_5
76#define GPIO_OUTPUT_LED_ERROR_GPIO_Port GPIOA
77#define GPIO_INPUT_FAULT_Pin GPIO_PIN_6
78#define GPIO_INPUT_FAULT_GPIO_Port GPIOA
79#define GPIO_OUTPUT_RELAIS_SET_Pin GPIO_PIN_7
80#define GPIO_OUTPUT_RELAIS_SET_GPIO_Port GPIOA
81#define GPIO_OUTPUT_RELAIS_RESET_Pin GPIO_PIN_8
82#define GPIO_OUTPUT_RELAIS_RESET_GPIO_Port GPIOA
83#define GPIO_OUTPUT_BUZZER_Pin GPIO_PIN_11
84#define GPIO_OUTPUT_BUZZER_GPIO_Port GPIOA
85#define GPIO_INPUT_BMS_Pin GPIO_PIN_12
86#define GPIO_INPUT_BMS_GPIO_Port GPIOA
87#define GPIO_INPUT_MODE_B2_Pin GPIO_PIN_6
88#define GPIO_INPUT_MODE_B2_GPIO_Port GPIOB
89
90/* USER CODE BEGIN Private defines */
91
92/* USER CODE END Private defines */
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* __MAIN_H */
Note: See TracBrowser for help on using the repository browser.