Web DMX - Firmware
Web DMX - Firmware
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
19
/* USER CODE END Header */
20
21
/* Define to prevent recursive inclusion -------------------------------------*/
22
#ifndef __MAIN_H
23
#define __MAIN_H
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* Includes ------------------------------------------------------------------*/
30
#include "stm32f3xx_hal.h"
31
32
/* Private includes ----------------------------------------------------------*/
33
/* USER CODE BEGIN Includes */
34
#include "
serial_receiver.h
"
35
/* USER CODE END Includes */
36
37
/* Exported types ------------------------------------------------------------*/
38
/* USER CODE BEGIN ET */
39
40
/* USER CODE END ET */
41
42
/* Exported constants --------------------------------------------------------*/
43
/* USER CODE BEGIN EC */
44
45
/* USER CODE END EC */
46
47
/* Exported macro ------------------------------------------------------------*/
48
/* USER CODE BEGIN EM */
49
50
/* USER CODE END EM */
51
52
/* Exported functions prototypes ---------------------------------------------*/
53
void
Error_Handler
(
void
);
54
55
/* USER CODE BEGIN EFP */
56
57
/* USER CODE END EFP */
58
59
/* Private defines -----------------------------------------------------------*/
60
#define MCO_Pin GPIO_PIN_0
61
#define MCO_GPIO_Port GPIOF
62
#define VCP_TX_Pin GPIO_PIN_2
63
#define VCP_TX_GPIO_Port GPIOA
64
#define DMX_OUT_Pin GPIO_PIN_9
65
#define DMX_OUT_GPIO_Port GPIOA
66
#define RX_UNUSED_Pin GPIO_PIN_10
67
#define RX_UNUSED_GPIO_Port GPIOA
68
#define SWDIO_Pin GPIO_PIN_13
69
#define SWDIO_GPIO_Port GPIOA
70
#define SWCLK_Pin GPIO_PIN_14
71
#define SWCLK_GPIO_Port GPIOA
72
#define VCP_RX_Pin GPIO_PIN_15
73
#define VCP_RX_GPIO_Port GPIOA
74
75
/* USER CODE BEGIN Private defines */
76
#define DMX_CHANNEL_COUNT 512
77
#define DMX_START_CODE 0x00
78
/* USER CODE END Private defines */
79
80
#ifdef __cplusplus
81
}
82
#endif
83
84
#endif
/* __MAIN_H */
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition
main.c:448
serial_receiver.h
include
main.h
Generated by
1.14.0