F439_CPP_BMP390_Barometric_Pressure_and_Altimeter_01 1.0
STM32F439 BMP390 barometric pressure and altimeter tutorial
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
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32f4xx_hal.h"
31
32/* Private includes ----------------------------------------------------------*/
33/* USER CODE BEGIN Includes */
34
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
54/* USER CODE BEGIN EFP */
55
61void delayUS(uint16_t us);
62
63/* USER CODE END EFP */
64
65/* Private defines -----------------------------------------------------------*/
66
67/* USER CODE BEGIN Private defines */
68
74void _Error_Handler(const char *file, int line);
75
77#define Error_Handler() _Error_Handler((const char *)__FILE__, __LINE__)
78
80#define REDIRECT_PRINTF
81
82/* USER CODE END Private defines */
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* __MAIN_H */
void _Error_Handler(const char *file, int line)
Reports a fatal error and halts. See _Error_Handler() in main.c.
Definition main.c:444
void delayUS(uint16_t us)
Busy-waits for the given number of microseconds using TIM1 (1 MHz counter – see MX_TIM1_Init()'s pres...
Definition main.c:109