2019.06.24
This commit is contained in:
parent
e945bfbbf3
commit
1f82e4a488
2990 changed files with 667957 additions and 444550 deletions
54
STM32/STM32-F103ZET6/Inc/main.h
Normal file
54
STM32/STM32-F103ZET6/Inc/main.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file : main.h
|
||||
* @brief : Header for main.c file.
|
||||
* This file contains the common defines of the application.
|
||||
******************************************************************************
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
|
||||
#define RST_Pin GPIO_PIN_1
|
||||
#define RST_GPIO_Port GPIOA
|
||||
#define DC_Pin GPIO_PIN_2
|
||||
#define DC_GPIO_Port GPIOA
|
||||
#define BUSY_Pin GPIO_PIN_3
|
||||
#define BUSY_GPIO_Port GPIOA
|
||||
#define SPI_CS_Pin GPIO_PIN_4
|
||||
#define SPI_CS_GPIO_Port GPIOA
|
||||
|
||||
/* ########################## Assert Selection ############################## */
|
||||
/**
|
||||
* @brief Uncomment the line below to expanse the "assert_param" macro in the
|
||||
* HAL drivers code
|
||||
*/
|
||||
/* #define USE_FULL_ASSERT 1U */
|
||||
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void _Error_Handler(char *, int);
|
||||
|
||||
#define Error_Handler() _Error_Handler(__FILE__, __LINE__)
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __MAIN_H__ */
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
||||
Loading…
Add table
Add a link
Reference in a new issue