1 | /* USER CODE BEGIN Header */
|
2 | /**
|
3 | ******************************************************************************
|
4 | * @file : main.h
|
5 | * @brief : Header for main.c file.
|
6 | * This file contains the common defines of the application.
|
7 | ******************************************************************************
|
8 | * @attention
|
9 | *
|
10 | * <h2><center>© Copyright (c) 2021 STMicroelectronics.
|
11 | * All rights reserved.</center></h2>
|
12 | *
|
13 | * This software component is licensed by ST under Ultimate Liberty license
|
14 | * SLA0044, the "License"; You may not use this file except in compliance with
|
15 | * the License. You may obtain a copy of the License at:
|
16 | * www.st.com/SLA0044
|
17 | *
|
18 | ******************************************************************************
|
19 | */
|
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 "stm32f0xx_hal.h"
|
32 |
|
33 | /* Private includes ----------------------------------------------------------*/
|
34 | /* USER CODE BEGIN Includes */
|
35 | #include "taste_yt_remote.h"
|
36 | #include "taste_yt_remote1.h"
|
37 | /* USER CODE END Includes */
|
38 |
|
39 | /* Exported types ------------------------------------------------------------*/
|
40 | /* USER CODE BEGIN ET */
|
41 | uint8_t i; // selbst eingefügt
|
42 | uint32_t tic;
|
43 | uint32_t toc;
|
44 | /* USER CODE END ET */
|
45 |
|
46 | /* Exported constants --------------------------------------------------------*/
|
47 | /* USER CODE BEGIN EC */
|
48 |
|
49 | /* USER CODE END EC */
|
50 |
|
51 | /* Exported macro ------------------------------------------------------------*/
|
52 | /* USER CODE BEGIN EM */
|
53 |
|
54 | /* USER CODE END EM */
|
55 |
|
56 | /* Exported functions prototypes ---------------------------------------------*/
|
57 | void Error_Handler(void);
|
58 |
|
59 | /* USER CODE BEGIN EFP */
|
60 |
|
61 | /* USER CODE END EFP */
|
62 |
|
63 | /* Private defines -----------------------------------------------------------*/
|
64 | #define NCS_MEMS_SPI_Pin GPIO_PIN_0
|
65 | #define NCS_MEMS_SPI_GPIO_Port GPIOC
|
66 | #define MEMS_INT1_Pin GPIO_PIN_1
|
67 | #define MEMS_INT1_GPIO_Port GPIOC
|
68 | #define MEMS_INT2_Pin GPIO_PIN_2
|
69 | #define MEMS_INT2_GPIO_Port GPIOC
|
70 | #define B1_Pin GPIO_PIN_0
|
71 | #define B1_GPIO_Port GPIOA
|
72 | #define B2_Pin GPIO_PIN_1
|
73 | #define B2_GPIO_Port GPIOA
|
74 | #define EXT_RESET_Pin GPIO_PIN_5
|
75 | #define EXT_RESET_GPIO_Port GPIOC
|
76 | #define I2C2_SCL_Pin GPIO_PIN_10
|
77 | #define I2C2_SCL_GPIO_Port GPIOB
|
78 | #define I2C2_SDA_Pin GPIO_PIN_11
|
79 | #define I2C2_SDA_GPIO_Port GPIOB
|
80 | #define SPI2_SCK_Pin GPIO_PIN_13
|
81 | #define SPI2_SCK_GPIO_Port GPIOB
|
82 | #define SPI2_MISO_Pin GPIO_PIN_14
|
83 | #define SPI2_MISO_GPIO_Port GPIOB
|
84 | #define SPI2_MOSI_Pin GPIO_PIN_15
|
85 | #define SPI2_MOSI_GPIO_Port GPIOB
|
86 | #define LD3_Pin GPIO_PIN_6
|
87 | #define LD3_GPIO_Port GPIOC
|
88 | #define LD6_Pin GPIO_PIN_7
|
89 | #define LD6_GPIO_Port GPIOC
|
90 | #define LD4_Pin GPIO_PIN_8
|
91 | #define LD4_GPIO_Port GPIOC
|
92 | #define LD5_Pin GPIO_PIN_9
|
93 | #define LD5_GPIO_Port GPIOC
|
94 | #define USBF4_DM_Pin GPIO_PIN_11
|
95 | #define USBF4_DM_GPIO_Port GPIOA
|
96 | #define USBF4_DP_Pin GPIO_PIN_12
|
97 | #define USBF4_DP_GPIO_Port GPIOA
|
98 | #define SWDIO_Pin GPIO_PIN_13
|
99 | #define SWDIO_GPIO_Port GPIOA
|
100 | #define SWCLK_Pin GPIO_PIN_14
|
101 | #define SWCLK_GPIO_Port GPIOA
|
102 | /* USER CODE BEGIN Private defines */
|
103 |
|
104 | /* USER CODE END Private defines */
|
105 |
|
106 | #ifdef __cplusplus
|
107 | }
|
108 | #endif
|
109 |
|
110 | #endif /* __MAIN_H */
|
111 |
|
112 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|