minipix_uart_interface
A library and examples for the MiniPIX UART interface
main.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
20
/* USER CODE END Header */
21
22
/* Define to prevent recursive inclusion -------------------------------------*/
23
#ifndef __MAIN_H
24
#define __MAIN_H
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
/* Includes ------------------------------------------------------------------*/
31
#include "stm32f4xx_hal.h"
32
33
/* Private includes ----------------------------------------------------------*/
34
/* USER CODE BEGIN Includes */
35
36
/* USER CODE END Includes */
37
38
/* Exported types ------------------------------------------------------------*/
39
/* USER CODE BEGIN ET */
40
41
/* USER CODE END ET */
42
43
/* Exported constants --------------------------------------------------------*/
44
/* USER CODE BEGIN EC */
45
46
/* USER CODE END EC */
47
48
/* Exported macro ------------------------------------------------------------*/
49
/* USER CODE BEGIN EM */
50
51
/* USER CODE END EM */
52
53
/* Exported functions prototypes ---------------------------------------------*/
54
void
Error_Handler
(
void
);
55
56
void
USART_IDLECallback
(UART_HandleTypeDef *huart);
57
58
/* USER CODE BEGIN EFP */
59
60
/* USER CODE END EFP */
61
62
/* Private defines -----------------------------------------------------------*/
63
#define B1_Pin GPIO_PIN_13
64
#define B1_GPIO_Port GPIOC
65
#define USART_TX_Pin GPIO_PIN_2
66
#define USART_TX_GPIO_Port GPIOA
67
#define USART_RX_Pin GPIO_PIN_3
68
#define USART_RX_GPIO_Port GPIOA
69
#define LD2_Pin GPIO_PIN_5
70
#define LD2_GPIO_Port GPIOA
71
#define TMS_Pin GPIO_PIN_13
72
#define TMS_GPIO_Port GPIOA
73
#define TCK_Pin GPIO_PIN_14
74
#define TCK_GPIO_Port GPIOA
75
#define SWO_Pin GPIO_PIN_3
76
#define SWO_GPIO_Port GPIOB
77
/* USER CODE BEGIN Private defines */
78
79
/* USER CODE END Private defines */
80
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* __MAIN_H */
86
87
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
USART_IDLECallback
void USART_IDLECallback(UART_HandleTypeDef *huart)
Definition:
main.c:202
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition:
main.c:455
example_interface
stm32f411
include
stm_core
main.h
Generated by
1.8.17