File tree Expand file tree Collapse file tree 1 file changed +1
-66
lines changed Expand file tree Collapse file tree 1 file changed +1
-66
lines changed Original file line number Diff line number Diff line change 35
35
*
36
36
******************************************************************************
37
37
*/
38
- /** @addtogroup CMSIS
39
- * @{
40
- */
41
-
42
- /** @addtogroup stm32f4xx_system
43
- * @{
44
- */
45
-
46
- /** @addtogroup STM32F4xx_System_Private_Includes
47
- * @{
48
- */
49
38
#include "digital_io.h"
50
39
#include "stm32_def.h"
51
40
#include "hw_config.h"
52
41
53
42
#ifdef __cplusplus
54
43
extern "C" {
55
44
#endif
56
- /**
57
- * @}
58
- */
59
-
60
- /** @addtogroup STM32F4xx_System_Private_TypesDefinitions
61
- * @{
62
- */
63
-
64
- /**
65
- * @}
66
- */
67
-
68
- /** @addtogroup STM32F4xx_System_Private_Defines
69
- * @{
70
- */
71
- /**
72
- * @}
73
- */
74
-
75
- /** @addtogroup STM32F4xx_System_Private_Macros
76
- * @{
77
- */
78
-
79
- /**
80
- * @}
81
- */
82
-
83
- /** @addtogroup STM32F4xx_System_Private_Variables
84
- * @{
85
- */
86
-
87
- /**
88
- * @}
89
- */
90
-
91
- /** @addtogroup STM32F4xx_System_Private_FunctionPrototypes
92
- * @{
93
- */
94
-
95
- /**
96
- * @}
97
- */
98
-
99
45
100
46
/**
101
47
* @brief This function initialize the IO
108
54
void digital_io_init (PinName pin , uint32_t mode , uint32_t pull )
109
55
{
110
56
GPIO_InitTypeDef GPIO_InitStructure ;
111
- GPIO_TypeDef * port = set_GPIO_Port_Clock (STM_PORT (pin ));;
57
+ GPIO_TypeDef * port = set_GPIO_Port_Clock (STM_PORT (pin ));
112
58
GPIO_InitStructure .Pin = STM_GPIO_PIN (pin );
113
59
GPIO_InitStructure .Speed = GPIO_SPEED_FREQ_HIGH ;
114
60
GPIO_InitStructure .Mode = mode ;
@@ -144,17 +90,6 @@ uint32_t digital_io_read(GPIO_TypeDef *port, uint32_t pin)
144
90
return (uint32_t )HAL_GPIO_ReadPin (port , pin );
145
91
}
146
92
147
- /**
148
- * @}
149
- */
150
-
151
- /**
152
- * @}
153
- */
154
-
155
- /**
156
- * @}
157
- */
158
93
#ifdef __cplusplus
159
94
}
160
95
#endif
You can’t perform that action at this time.
0 commit comments