File tree Expand file tree Collapse file tree 3 files changed +0
-70
lines changed Expand file tree Collapse file tree 3 files changed +0
-70
lines changed Original file line number Diff line number Diff line change 20
20
#define ARDUINO_MAIN
21
21
#include " Arduino.h"
22
22
23
-
24
23
// Weak empty variant initialization function.
25
24
// May be redefined by variant files.
26
25
void initVariant () __attribute__((weak));
Original file line number Diff line number Diff line change 36
36
******************************************************************************
37
37
*/
38
38
39
- /** @addtogroup CMSIS
40
- * @{
41
- */
42
-
43
- /** @addtogroup stm32f4xx_system
44
- * @{
45
- */
46
-
47
- /** @addtogroup STM32F4xx_System_Private_Includes
48
- * @{
49
- */
50
39
#include "core_debug.h"
51
40
#include "stm32_def.h"
52
41
#include "twi.h"
53
42
#include "PinAF_STM32F1.h"
54
43
55
- /**
56
- * @}
57
- */
58
-
59
44
#ifdef __cplusplus
60
45
extern "C" {
61
46
#endif
62
47
63
- /** @addtogroup STM32F4xx_System_Private_TypesDefinitions
64
- * @{
65
- */
66
- /**
67
- * @}
68
- */
69
-
70
- /** @addtogroup STM32F4xx_System_Private_Defines
71
- * @{
72
- */
73
-
74
48
/// @brief I2C timout in tick unit
75
49
#define I2C_TIMEOUT_TICK 100
76
50
79
53
#define SLAVE_MODE_LISTEN 2
80
54
81
55
82
- /**
83
- * @}
84
- */
85
-
86
- /** @addtogroup STM32F4xx_System_Private_Macros
87
- * @{
88
- */
89
-
90
- /**
91
- * @}
92
- */
93
-
94
- /** @addtogroup STM32F4xx_System_Private_TypesDefinitions
95
- * @{
96
- */
97
-
98
- /**
99
- * @}
100
- */
101
-
102
- /** @addtogroup STM32F4xx_System_Private_Variables
103
- * @{
104
- */
105
-
106
56
/* Family specific description for I2C */
107
57
#if defined(STM32F7xx ) || defined(STM32L4xx )
108
58
#define I2C_NUM (4)
116
66
117
67
static I2C_HandleTypeDef * i2c_handles [I2C_NUM ];
118
68
119
- /**
120
- * @}
121
- */
122
-
123
- /** @addtogroup STM32F4xx_System_Private_FunctionPrototypes
124
- * @{
125
- */
126
-
127
- /**
128
- * @}
129
- */
130
-
131
- /** @addtogroup STM32F4xx_System_Private_Functions
132
- * @{
133
- */
134
-
135
-
136
69
/**
137
70
* @brief Default init and setup GPIO and I2C peripheral
138
71
* @param obj : pointer to i2c_t structure
Original file line number Diff line number Diff line change @@ -141,8 +141,6 @@ typedef enum {
141
141
#endif
142
142
}i2c_timing_e ;
143
143
144
- /* Exported constants --------------------------------------------------------*/
145
- /* Exported macro ------------------------------------------------------------*/
146
144
/* Exported functions ------------------------------------------------------- */
147
145
void i2c_init (i2c_t * obj );
148
146
void i2c_custom_init (i2c_t * obj , i2c_timing_e timing , uint32_t addressingMode ,
You can’t perform that action at this time.
0 commit comments