H753_CPP_I2C_DS3231_RTC_01 1.0
STM32H753 DS3231 real-time clock over I2C, with an AT24C32 EEPROM marker that stops the clock being set twice, built on the STM32_DS3231 and STM32_AT24C32 libraries
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 "stm32h7xx_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
56/* USER CODE END EFP */
57
58/* Private defines -----------------------------------------------------------*/
59#define STLINK_RX_Pin GPIO_PIN_8
60#define STLINK_RX_GPIO_Port GPIOD
61#define STLINK_TX_Pin GPIO_PIN_9
62#define STLINK_TX_GPIO_Port GPIOD
63
64/* USER CODE BEGIN Private defines */
65
66void _Error_Handler(const char *file, int line);
67
68#define Error_Handler() _Error_Handler((const char *)__FILE__, __LINE__)
69#define REDIRECT_PRINTF
70
71/* USER CODE END Private defines */
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __MAIN_H */