aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-07-21 20:29:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-07-21 22:40:56 -0400
commit893acdb56bddbe8c24b51050187325f71e439798 (patch)
tree705cd4b3422c83967a8e0b4533aee21b32ea3b3d /lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h
parent17bd595b155304e9f1defa480f5eb7d8c060d9d6 (diff)
downloadkutter-893acdb56bddbe8c24b51050187325f71e439798.tar.gz
kutter-893acdb56bddbe8c24b51050187325f71e439798.tar.xz
kutter-893acdb56bddbe8c24b51050187325f71e439798.zip
lib: Update stm32f1 code to version 1.8.0
Update the stm32f1 code to the latest from ST. Merge the lib/cmsis-stm32f1/ and lib/hal-stm32f1/ into a single lib/stm32f1/ directory. Document all the differences from the pristine upstream code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h')
-rw-r--r--lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h b/lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h
new file mode 100644
index 00000000..7e5eebf9
--- /dev/null
+++ b/lib/stm32f1/hal/include/stm32f1xx_hal_pcd_ex.h
@@ -0,0 +1,90 @@
+/**
+ ******************************************************************************
+ * @file stm32f1xx_hal_pcd_ex.h
+ * @author MCD Application Team
+ * @brief Header file of PCD HAL Extension module.
+ ******************************************************************************
+ * @attention
+ *
+ * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
+ * All rights reserved.</center></h2>
+ *
+ * This software component is licensed by ST under BSD 3-Clause license,
+ * the "License"; You may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at:
+ * opensource.org/licenses/BSD-3-Clause
+ *
+ ******************************************************************************
+ */
+
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef STM32F1xx_HAL_PCD_EX_H
+#define STM32F1xx_HAL_PCD_EX_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Includes ------------------------------------------------------------------*/
+#include "stm32f1xx_hal_def.h"
+
+#if defined (USB) || defined (USB_OTG_FS)
+/** @addtogroup STM32F1xx_HAL_Driver
+ * @{
+ */
+
+/** @addtogroup PCDEx
+ * @{
+ */
+/* Exported types ------------------------------------------------------------*/
+/* Exported constants --------------------------------------------------------*/
+/* Exported macros -----------------------------------------------------------*/
+/* Exported functions --------------------------------------------------------*/
+/** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
+ * @{
+ */
+/** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
+ * @{
+ */
+
+#if defined (USB_OTG_FS)
+HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
+HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
+#endif /* defined (USB_OTG_FS) */
+
+#if defined (USB)
+HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd,
+ uint16_t ep_addr,
+ uint16_t ep_kind,
+ uint32_t pmaadress);
+
+void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state);
+#endif /* defined (USB) */
+void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
+void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
+
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
+#endif /* defined (USB) || defined (USB_OTG_FS) */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* STM32F1xx_HAL_PCD_EX_H */
+
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/