stm32l431_xl_current/Core/Inc/main.h

100 lines
2.9 KiB
C
Raw Normal View History

2024-07-15 01:27:36 +00:00
/* 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) 2023 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 "stm32l4xx_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 SYS_WKUP2_Pin GPIO_PIN_13
#define SYS_WKUP2_GPIO_Port GPIOC
#define CN3791_CHRG_Pin GPIO_PIN_14
#define CN3791_CHRG_GPIO_Port GPIOC
#define WDI_OUT_Pin GPIO_PIN_15
#define WDI_OUT_GPIO_Port GPIOC
#define ADC1_CH1_Pin GPIO_PIN_0
#define ADC1_CH1_GPIO_Port GPIOC
#define DAC_OUT1_Pin GPIO_PIN_4
#define DAC_OUT1_GPIO_Port GPIOA
#define RF_PWR_CTRL_Pin GPIO_PIN_4
#define RF_PWR_CTRL_GPIO_Port GPIOC
#define RF_AUX_Pin GPIO_PIN_5
#define RF_AUX_GPIO_Port GPIOC
#define RF_M1_Pin GPIO_PIN_6
#define RF_M1_GPIO_Port GPIOC
#define SENSOR_PWR_CTRL_Pin GPIO_PIN_7
#define SENSOR_PWR_CTRL_GPIO_Port GPIOC
#define GAIN_SET_Pin GPIO_PIN_8
#define GAIN_SET_GPIO_Port GPIOC
#define GPIO_LED_Pin GPIO_PIN_9
#define GPIO_LED_GPIO_Port GPIOC
#define RF_M0_Pin GPIO_PIN_12
#define RF_M0_GPIO_Port GPIOC
#define CN3791_CHRGB8_Pin GPIO_PIN_8
#define CN3791_CHRGB8_GPIO_Port GPIOB
#define CN3791_DONE_Pin GPIO_PIN_9
#define CN3791_DONE_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
extern int read_uart_flag;
extern float max_rms_mA;
2024-07-15 01:27:36 +00:00
/* USER CODE END Private defines */
#ifdef __cplusplus
}
#endif
#endif /* __MAIN_H */