|
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 "stm32_def.h"
|
50 | 39 | #include "interrupt.h"
|
51 | 40 |
|
52 |
| -/** |
53 |
| - * @} |
54 |
| - */ |
55 |
| - |
56 |
| -/** @addtogroup STM32F4xx_System_Private_TypesDefinitions |
57 |
| - * @{ |
58 |
| - */ |
| 41 | +/* Private Types */ |
59 | 42 |
|
60 | 43 | /*As we can have only one interrupt/pin id, don't need to get the port info*/
|
61 | 44 | typedef struct {
|
62 | 45 | IRQn_Type irqnb;
|
63 | 46 | std::function<void(void)> callback;
|
64 | 47 | } gpio_irq_conf_str;
|
65 | 48 |
|
66 |
| -/** |
67 |
| - * @} |
68 |
| - */ |
69 |
| - |
70 |
| -/** @addtogroup STM32F4xx_System_Private_Defines |
71 |
| - * @{ |
72 |
| - */ |
| 49 | +/* Private_Defines */ |
73 | 50 | #define NB_EXTI (16)
|
74 |
| -/** |
75 |
| - * @} |
76 |
| - */ |
77 |
| - |
78 |
| -/** @addtogroup STM32F4xx_System_Private_Macros |
79 |
| - * @{ |
80 |
| - */ |
81 |
| - |
82 |
| -/** |
83 |
| - * @} |
84 |
| - */ |
85 | 51 |
|
86 |
| -/** @addtogroup STM32F4xx_System_Private_Variables |
87 |
| - * @{ |
88 |
| - */ |
| 52 | +/* Private Variables */ |
89 | 53 | static gpio_irq_conf_str gpio_irq_conf[NB_EXTI] = {
|
90 | 54 | #if defined (STM32F0xx) || defined (STM32L0xx)
|
91 | 55 | {.irqnb = EXTI0_1_IRQn, .callback = NULL}, //GPIO_PIN_0
|
@@ -123,25 +87,14 @@ static gpio_irq_conf_str gpio_irq_conf[NB_EXTI] = {
|
123 | 87 | {.irqnb = EXTI15_10_IRQn, .callback = NULL} //GPIO_PIN_15
|
124 | 88 | #endif
|
125 | 89 | };
|
126 |
| -/** |
127 |
| - * @} |
128 |
| - */ |
129 | 90 |
|
130 |
| -/** @addtogroup STM32F4xx_System_Private_FunctionPrototypes |
131 |
| - * @{ |
132 |
| - */ |
133 |
| - |
134 |
| -static uint8_t get_pin_id(uint16_t pin); |
135 |
| - |
136 |
| -/** |
137 |
| - * @} |
138 |
| - */ |
| 91 | +/* Private Functions */ |
139 | 92 | /**
|
140 | 93 | * @brief This function returns the pin ID function of the HAL PIN definition
|
141 | 94 | * @param pin : one of the gpio pin
|
142 | 95 | * @retval None
|
143 | 96 | */
|
144 |
| -uint8_t get_pin_id(uint16_t pin) |
| 97 | +static uint8_t get_pin_id(uint16_t pin) |
145 | 98 | {
|
146 | 99 | uint8_t id = 0;
|
147 | 100 |
|
@@ -397,15 +350,4 @@ void EXTI15_10_IRQHandler(void)
|
397 | 350 | }
|
398 | 351 | #endif
|
399 | 352 | #endif
|
400 |
| -/** |
401 |
| - * @} |
402 |
| - */ |
403 |
| - |
404 |
| -/** |
405 |
| - * @} |
406 |
| - */ |
407 |
| - |
408 |
| -/** |
409 |
| - * @} |
410 |
| - */ |
411 | 353 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
0 commit comments