1818 */
1919
2020/* Define to prevent recursive inclusion -------------------------------------*/
21- #ifndef STM32F1xx_HAL_PCD_EX_H
22- #define STM32F1xx_HAL_PCD_EX_H
21+ #ifndef __STM32F1xx_HAL_PCD_EX_H
22+ #define __STM32F1xx_HAL_PCD_EX_H
2323
2424#ifdef __cplusplus
25- extern "C" {
25+ extern "C" {
2626#endif
2727
28+ #if defined(STM32F102x6 ) || defined(STM32F102xB ) || \
29+ defined(STM32F103x6 ) || defined(STM32F103xB ) || \
30+ defined(STM32F103xE ) || defined(STM32F103xG ) || \
31+ defined(STM32F105xC ) || defined(STM32F107xC )
32+
2833/* Includes ------------------------------------------------------------------*/
2934#include "stm32f1xx_hal_def.h"
3035
31- #if defined (USB ) || defined (USB_OTG_FS )
3236/** @addtogroup STM32F1xx_HAL_Driver
3337 * @{
3438 */
3539
3640/** @addtogroup PCDEx
3741 * @{
3842 */
43+
3944/* Exported types ------------------------------------------------------------*/
4045/* Exported constants --------------------------------------------------------*/
4146/* Exported macros -----------------------------------------------------------*/
@@ -46,45 +51,48 @@ extern "C" {
4651/** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
4752 * @{
4853 */
49-
5054#if defined (USB_OTG_FS )
5155HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo (PCD_HandleTypeDef * hpcd , uint8_t fifo , uint16_t size );
5256HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo (PCD_HandleTypeDef * hpcd , uint16_t size );
53- #endif /* defined ( USB_OTG_FS) */
57+ #endif /* USB_OTG_FS */
5458
5559#if defined (USB )
56- HAL_StatusTypeDef HAL_PCDEx_PMAConfig (PCD_HandleTypeDef * hpcd ,
57- uint16_t ep_addr ,
58- uint16_t ep_kind ,
59- uint32_t pmaadress );
60+ HAL_StatusTypeDef HAL_PCDEx_PMAConfig (PCD_HandleTypeDef * hpcd ,
61+ uint16_t ep_addr ,
62+ uint16_t ep_kind ,
63+ uint32_t pmaadress );
64+ #endif /* USB */
65+ /**
66+ * @}
67+ */
6068
69+ /** @addtogroup PCDEx_Exported_Functions_Group2 Peripheral State functions
70+ * @{
71+ */
6172void HAL_PCDEx_SetConnectionState (PCD_HandleTypeDef * hpcd , uint8_t state );
62- #endif /* defined (USB) */
63- void HAL_PCDEx_LPM_Callback (PCD_HandleTypeDef * hpcd , PCD_LPM_MsgTypeDef msg );
64- void HAL_PCDEx_BCD_Callback (PCD_HandleTypeDef * hpcd , PCD_BCD_MsgTypeDef msg );
65-
6673/**
6774 * @}
6875 */
69-
7076/**
7177 * @}
7278 */
73-
7479/**
7580 * @}
7681 */
7782
7883/**
7984 * @}
8085 */
81- #endif /* defined (USB) || defined (USB_OTG_FS) */
86+ #endif /* STM32F102x6 || STM32F102xB || */
87+ /* STM32F103x6 || STM32F103xB || */
88+ /* STM32F103xE || STM32F103xG || */
89+ /* STM32F105xC || STM32F107xC */
8290
8391#ifdef __cplusplus
8492}
8593#endif
8694
8795
88- #endif /* STM32F1xx_HAL_PCD_EX_H */
96+ #endif /* __STM32F1xx_HAL_PCD_EX_H */
8997
9098/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
0 commit comments