Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

146 lines
2.9 KiB

  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : usbd_desc.c
  5. * @version : v2.0_Cube
  6. * @brief : Header for usbd_conf.c file.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under Ultimate Liberty license
  14. * SLA0044, the "License"; You may not use this file except in compliance with
  15. * the License. You may obtain a copy of the License at:
  16. * www.st.com/SLA0044
  17. *
  18. ******************************************************************************
  19. */
  20. /* USER CODE END Header */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __USBD_DESC__C__
  23. #define __USBD_DESC__C__
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "usbd_def.h"
  29. /* USER CODE BEGIN INCLUDE */
  30. /* USER CODE END INCLUDE */
  31. /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
  32. * @{
  33. */
  34. /** @defgroup USBD_DESC USBD_DESC
  35. * @brief Usb device descriptors module.
  36. * @{
  37. */
  38. /** @defgroup USBD_DESC_Exported_Constants USBD_DESC_Exported_Constants
  39. * @brief Constants.
  40. * @{
  41. */
  42. #define DEVICE_ID1 (UID_BASE)
  43. #define DEVICE_ID2 (UID_BASE + 0x4)
  44. #define DEVICE_ID3 (UID_BASE + 0x8)
  45. #define USB_SIZ_STRING_SERIAL 0x1A
  46. /* USER CODE BEGIN EXPORTED_CONSTANTS */
  47. /* USER CODE END EXPORTED_CONSTANTS */
  48. /**
  49. * @}
  50. */
  51. /** @defgroup USBD_DESC_Exported_Defines USBD_DESC_Exported_Defines
  52. * @brief Defines.
  53. * @{
  54. */
  55. /* USER CODE BEGIN EXPORTED_DEFINES */
  56. /* USER CODE END EXPORTED_DEFINES */
  57. /**
  58. * @}
  59. */
  60. /** @defgroup USBD_DESC_Exported_TypesDefinitions USBD_DESC_Exported_TypesDefinitions
  61. * @brief Types.
  62. * @{
  63. */
  64. /* USER CODE BEGIN EXPORTED_TYPES */
  65. /* USER CODE END EXPORTED_TYPES */
  66. /**
  67. * @}
  68. */
  69. /** @defgroup USBD_DESC_Exported_Macros USBD_DESC_Exported_Macros
  70. * @brief Aliases.
  71. * @{
  72. */
  73. /* USER CODE BEGIN EXPORTED_MACRO */
  74. /* USER CODE END EXPORTED_MACRO */
  75. /**
  76. * @}
  77. */
  78. /** @defgroup USBD_DESC_Exported_Variables USBD_DESC_Exported_Variables
  79. * @brief Public variables.
  80. * @{
  81. */
  82. /** Descriptor for the Usb device. */
  83. extern USBD_DescriptorsTypeDef FS_Desc;
  84. /* USER CODE BEGIN EXPORTED_VARIABLES */
  85. /* USER CODE END EXPORTED_VARIABLES */
  86. /**
  87. * @}
  88. */
  89. /** @defgroup USBD_DESC_Exported_FunctionsPrototype USBD_DESC_Exported_FunctionsPrototype
  90. * @brief Public functions declaration.
  91. * @{
  92. */
  93. /* USER CODE BEGIN EXPORTED_FUNCTIONS */
  94. /* USER CODE END EXPORTED_FUNCTIONS */
  95. /**
  96. * @}
  97. */
  98. /**
  99. * @}
  100. */
  101. /**
  102. * @}
  103. */
  104. #ifdef __cplusplus
  105. }
  106. #endif
  107. #endif /* __USBD_DESC__C__ */
  108. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/