You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.9 KiB
101 lines
2.9 KiB
/* 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) 2024 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 "stm32wlxx_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 SDA_Pin GPIO_PIN_15 |
|
#define SDA_GPIO_Port GPIOA |
|
#define SCL_Pin GPIO_PIN_15 |
|
#define SCL_GPIO_Port GPIOB |
|
#define ENRS485_Pin GPIO_PIN_4 |
|
#define ENRS485_GPIO_Port GPIOB |
|
#define RX_Pin GPIO_PIN_7 |
|
#define RX_GPIO_Port GPIOB |
|
#define NSS_Pin GPIO_PIN_9 |
|
#define NSS_GPIO_Port GPIOB |
|
#define MISO_Pin GPIO_PIN_14 |
|
#define MISO_GPIO_Port GPIOB |
|
#define MOSI_Pin GPIO_PIN_10 |
|
#define MOSI_GPIO_Port GPIOA |
|
#define LED_Pin GPIO_PIN_5 |
|
#define LED_GPIO_Port GPIOB |
|
#define BOOT_SCK_Pin GPIO_PIN_13 |
|
#define BOOT_SCK_GPIO_Port GPIOB |
|
#define TX_Pin GPIO_PIN_6 |
|
#define TX_GPIO_Port GPIOB |
|
#define EN3V3_Pin GPIO_PIN_9 |
|
#define EN3V3_GPIO_Port GPIOA |
|
#define TX1_Pin GPIO_PIN_1 |
|
#define TX1_GPIO_Port GPIOC |
|
#define RX1_Pin GPIO_PIN_0 |
|
#define RX1_GPIO_Port GPIOC |
|
#define RX2_Pin GPIO_PIN_3 |
|
#define RX2_GPIO_Port GPIOA |
|
#define TX2_Pin GPIO_PIN_2 |
|
#define TX2_GPIO_Port GPIOA |
|
#define EN5V_Pin GPIO_PIN_10 |
|
#define EN5V_GPIO_Port GPIOB |
|
|
|
/* USER CODE BEGIN Private defines */ |
|
|
|
/* USER CODE END Private defines */ |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
#endif /* __MAIN_H */
|
|
|