Repository navigation
Expand file tree
/
Copy pathstm32u083c_discovery_conf_template.h
More file actions
97 lines (76 loc) · 2.24 KB
/
Copy pathstm32u083c_discovery_conf_template.h
File metadata and controls
97 lines (76 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**
******************************************************************************
* @file stm32u083c_discovery_conf_template.h
* @author MCD Application Team
* @brief configuration file.
* This file should be copied to the application folder and renamed
* to stm32u083c_discovery_conf.h
******************************************************************************
* @attention
*
* Copyright (c) 2023 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32U083C_DK_CONF_H
#define STM32U083C_DK_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32u0xx_hal.h"
/** @addtogroup BSP
* @{
*/
/** @addtogroup STM32U083C_DK
* @{
*/
/** @defgroup STM32U083C_DK_CONFIG Config
* @{
*/
/** @defgroup STM32U083C_DK_CONFIG_Exported_Constants Exported Constants
* @{
*/
/* Environmental Sensors usage */
#define USE_ENV_SENSOR_STTS22H_0 0U
/* COM port usage */
#if defined(USE_VCP_CONNECTION)
#define USE_BSP_COM_FEATURE 1U
#define USE_COM_LOG 1U
#else
#define USE_BSP_COM_FEATURE 0U
#define USE_COM_LOG 0U
#endif /* USE_VCP_CONNECTION */
/* JOY define */
#define USE_BSP_JOY_FEATURE 1U
/* IRQ priorities */
#define BSP_BUTTON_USER_IT_PRIORITY 15U
/* I2C1 Frequency in Hz */
#define BUS_I2C1_FREQUENCY 100000UL /* Frequency of I2C1 = 100 KHz*/
#define STM32U083C_DK_I2C_Init BSP_I2C1_Init
#define STM32U083C_DK_I2C_DeInit BSP_I2C1_DeInit
#define STM32U083C_DK_I2C_ReadReg BSP_I2C1_ReadReg
#define STM32U083C_DK_I2C_WriteReg BSP_I2C1_WriteReg
#define STM32U083C_DK_GetTick BSP_GetTick
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* STM32U083C_DK_CONF_H */