add support for ALIENTEK_Pandora_STM32L475
This commit is contained in:
102
board/ALIENTEK_Pandora_STM32L475/BSP/Inc/main.h
Normal file
102
board/ALIENTEK_Pandora_STM32L475/BSP/Inc/main.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : main.h
|
||||
* @brief : Header for main.c file.
|
||||
* This file contains the common defines of the application.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© Copyright (c) 2019 STMicroelectronics.
|
||||
* All rights reserved.</center></h2>
|
||||
*
|
||||
* This software component is licensed by ST under BSD 3-Clause license,
|
||||
* the "License"; You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at:
|
||||
* opensource.org/licenses/BSD-3-Clause
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
/* 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 WK_UP_Pin GPIO_PIN_13
|
||||
#define WK_UP_GPIO_Port GPIOC
|
||||
#define LED_R_Pin GPIO_PIN_7
|
||||
#define LED_R_GPIO_Port GPIOE
|
||||
#define LED_G_Pin GPIO_PIN_8
|
||||
#define LED_G_GPIO_Port GPIOE
|
||||
#define LED_B_Pin GPIO_PIN_9
|
||||
#define LED_B_GPIO_Port GPIOE
|
||||
#define KEY2_Pin GPIO_PIN_8
|
||||
#define KEY2_GPIO_Port GPIOD
|
||||
#define KEY1_Pin GPIO_PIN_9
|
||||
#define KEY1_GPIO_Port GPIOD
|
||||
#define KEY0_Pin GPIO_PIN_10
|
||||
#define KEY0_GPIO_Port GPIOD
|
||||
#define LCD_CS_Pin GPIO_PIN_7
|
||||
#define LCD_CS_GPIO_Port GPIOD
|
||||
#define LCD_SPI_SCK_Pin GPIO_PIN_3
|
||||
#define LCD_SPI_SCK_GPIO_Port GPIOB
|
||||
#define LCD_WR_Pin GPIO_PIN_4
|
||||
#define LCD_WR_GPIO_Port GPIOB
|
||||
#define LCD_SPI_SDA_Pin GPIO_PIN_5
|
||||
#define LCD_SPI_SDA_GPIO_Port GPIOB
|
||||
#define LCD_RESET_Pin GPIO_PIN_6
|
||||
#define LCD_RESET_GPIO_Port GPIOB
|
||||
#define LCD_PWR_Pin GPIO_PIN_7
|
||||
#define LCD_PWR_GPIO_Port GPIOB
|
||||
/* USER CODE BEGIN Private defines */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void _Error_Handler(char *, int);
|
||||
|
||||
#define Error_Handler() _Error_Handler(__FILE__, __LINE__)
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __MAIN_H */
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
Reference in New Issue
Block a user