Skip to content

Commit bc20b9e

Browse files
committed
Fix typo
Clean comment Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 4f8a1b2 commit bc20b9e

File tree

1 file changed

+1
-66
lines changed

1 file changed

+1
-66
lines changed

cores/arduino/stm32/digital_io.c

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -35,67 +35,13 @@
3535
*
3636
******************************************************************************
3737
*/
38-
/** @addtogroup CMSIS
39-
* @{
40-
*/
41-
42-
/** @addtogroup stm32f4xx_system
43-
* @{
44-
*/
45-
46-
/** @addtogroup STM32F4xx_System_Private_Includes
47-
* @{
48-
*/
4938
#include "digital_io.h"
5039
#include "stm32_def.h"
5140
#include "hw_config.h"
5241

5342
#ifdef __cplusplus
5443
extern "C" {
5544
#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-
9945

10046
/**
10147
* @brief This function initialize the IO
@@ -108,7 +54,7 @@
10854
void digital_io_init(PinName pin, uint32_t mode, uint32_t pull)
10955
{
11056
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));
11258
GPIO_InitStructure.Pin = STM_GPIO_PIN(pin);
11359
GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_HIGH;
11460
GPIO_InitStructure.Mode = mode;
@@ -144,17 +90,6 @@ uint32_t digital_io_read(GPIO_TypeDef *port, uint32_t pin)
14490
return (uint32_t)HAL_GPIO_ReadPin(port, pin);
14591
}
14692

147-
/**
148-
* @}
149-
*/
150-
151-
/**
152-
* @}
153-
*/
154-
155-
/**
156-
* @}
157-
*/
15893
#ifdef __cplusplus
15994
}
16095
#endif

0 commit comments

Comments
 (0)