Advertisement
Guest User

Untitled

a guest
Jan 30th, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 17.92 KB | None | 0 0
  1. diff --git a/os/hal/boards/ST_NUCLEO144_F207ZG/board.h b/os/hal/boards/ST_NUCLEO144_F207ZG/board.h
  2. index 9119f7526..f6747b795 100644
  3. --- a/os/hal/boards/ST_NUCLEO144_F207ZG/board.h
  4. +++ b/os/hal/boards/ST_NUCLEO144_F207ZG/board.h
  5. @@ -51,11 +51,9 @@
  6.  #endif
  7.  
  8.  #if !defined(STM32_HSECLK)
  9. -#define STM32_HSECLK                8000000U
  10. +#define STM32_HSECLK                26000000U
  11.  #endif
  12.  
  13. -#define STM32_HSE_BYPASS
  14. -
  15.  /*
  16.   * Board voltages.
  17.   * Required for performance limits calculation.
  18. @@ -65,7 +63,7 @@
  19.  /*
  20.   * MCU type as defined in the ST header.
  21.   */
  22. -#define STM32F207xx
  23. +#define STM32F205xx
  24.  
  25.  /*
  26.   * IO pins assignments.
  27. @@ -95,6 +93,7 @@
  28.  #define GPIOA_SWCLK                 14U
  29.  #define GPIOA_ZIO_D20               15U
  30.  #define GPIOA_I2S3_WS               15U
  31. +#define GPIOA_LED1                  15U
  32.  
  33.  #define GPIOB_ZIO_D33               0U
  34.  #define GPIOB_TIM3_CH3              0U
  35. @@ -123,9 +122,8 @@
  36.  #define GPIOB_ZIO_D18               13U
  37.  #define GPIOB_I2S2_CK               13U
  38.  #define GPIOB_RMII_TXD1             13U
  39. -#define GPIOB_LED3                  14U
  40. -#define GPIOB_ZIO_D17               15U
  41. -#define GPIOB_I2S2_SD               15U
  42. +#define GPIOB_USB_DM                14U
  43. +#define GPIOB_USB_DP                15U
  44.  
  45.  #define GPIOC_ARD_A1                0U
  46.  #define GPIOC_ADC123_IN10           0U
  47. @@ -349,9 +347,10 @@
  48.  #define LINE_SWCLK                  PAL_LINE(GPIOA, 14U)
  49.  #define LINE_ZIO_D20                PAL_LINE(GPIOA, 15U)
  50.  #define LINE_I2S3_WS                PAL_LINE(GPIOA, 15U)
  51. +#define LINE_LED1                   PAL_LINE(GPIOA, 15U)
  52.  #define LINE_ZIO_D33                PAL_LINE(GPIOB, 0U)
  53.  #define LINE_TIM3_CH3               PAL_LINE(GPIOB, 0U)
  54. -#define LINE_LED1                   PAL_LINE(GPIOB, 0U)
  55. +// #define LINE_LED1                   PAL_LINE(GPIOB, 0U)
  56.  #define LINE_ZIO_A6                 PAL_LINE(GPIOB, 1U)
  57.  #define LINE_ADC12_IN9              PAL_LINE(GPIOB, 1U)
  58.  #define LINE_ZIO_D27                PAL_LINE(GPIOB, 2U)
  59. @@ -549,7 +548,7 @@
  60.   * PA12 - USB_DP                    (alternate 10).
  61.   * PA13 - SWDIO                     (alternate 0).
  62.   * PA14 - SWCLK                     (alternate 0).
  63. - * PA15 - ZIO_D20 I2S3_WS           (input pullup).
  64. + * PA15 - LED1                      (output pushpull maximum).
  65.   */
  66.  #define VAL_GPIOA_MODER             (PIN_MODE_INPUT(GPIOA_ZIO_D32) |        \
  67.                                       PIN_MODE_ALTERNATE(GPIOA_RMII_REF_CLK) |\
  68. @@ -566,7 +565,7 @@
  69.                                       PIN_MODE_ALTERNATE(GPIOA_USB_DP) |     \
  70.                                       PIN_MODE_ALTERNATE(GPIOA_SWDIO) |      \
  71.                                       PIN_MODE_ALTERNATE(GPIOA_SWCLK) |      \
  72. -                                     PIN_MODE_INPUT(GPIOA_ZIO_D20))
  73. +                                     PIN_MODE_OUTPUT(GPIOA_LED1))
  74.  #define VAL_GPIOA_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOA_ZIO_D32) |    \
  75.                                       PIN_OTYPE_PUSHPULL(GPIOA_RMII_REF_CLK) |\
  76.                                       PIN_OTYPE_PUSHPULL(GPIOA_RMII_MDIO) |  \
  77. @@ -582,7 +581,7 @@
  78.                                       PIN_OTYPE_PUSHPULL(GPIOA_USB_DP) |     \
  79.                                       PIN_OTYPE_PUSHPULL(GPIOA_SWDIO) |      \
  80.                                       PIN_OTYPE_PUSHPULL(GPIOA_SWCLK) |      \
  81. -                                     PIN_OTYPE_PUSHPULL(GPIOA_ZIO_D20))
  82. +                                     PIN_OTYPE_PUSHPULL(GPIOA_LED1))
  83.  #define VAL_GPIOA_OSPEEDR           (PIN_OSPEED_HIGH(GPIOA_ZIO_D32) |       \
  84.                                       PIN_OSPEED_HIGH(GPIOA_RMII_REF_CLK) |  \
  85.                                       PIN_OSPEED_HIGH(GPIOA_RMII_MDIO) |     \
  86. @@ -598,7 +597,7 @@
  87.                                       PIN_OSPEED_HIGH(GPIOA_USB_DP) |        \
  88.                                       PIN_OSPEED_HIGH(GPIOA_SWDIO) |         \
  89.                                       PIN_OSPEED_HIGH(GPIOA_SWCLK) |         \
  90. -                                     PIN_OSPEED_HIGH(GPIOA_ZIO_D20))
  91. +                                     PIN_OSPEED_HIGH(GPIOA_LED1))
  92.  #define VAL_GPIOA_PUPDR             (PIN_PUPDR_PULLUP(GPIOA_ZIO_D32) |      \
  93.                                       PIN_PUPDR_FLOATING(GPIOA_RMII_REF_CLK) |\
  94.                                       PIN_PUPDR_PULLUP(GPIOA_RMII_MDIO) |    \
  95. @@ -614,7 +613,7 @@
  96.                                       PIN_PUPDR_FLOATING(GPIOA_USB_DP) |     \
  97.                                       PIN_PUPDR_FLOATING(GPIOA_SWDIO) |      \
  98.                                       PIN_PUPDR_FLOATING(GPIOA_SWCLK) |      \
  99. -                                     PIN_PUPDR_PULLUP(GPIOA_ZIO_D20))
  100. +                                     PIN_PUPDR_FLOATING(GPIOA_LED1))
  101.  #define VAL_GPIOA_ODR               (PIN_ODR_HIGH(GPIOA_ZIO_D32) |          \
  102.                                       PIN_ODR_HIGH(GPIOA_RMII_REF_CLK) |     \
  103.                                       PIN_ODR_HIGH(GPIOA_RMII_MDIO) |        \
  104. @@ -630,7 +629,7 @@
  105.                                       PIN_ODR_HIGH(GPIOA_USB_DP) |           \
  106.                                       PIN_ODR_HIGH(GPIOA_SWDIO) |            \
  107.                                       PIN_ODR_HIGH(GPIOA_SWCLK) |            \
  108. -                                     PIN_ODR_HIGH(GPIOA_ZIO_D20))
  109. +                                     PIN_ODR_LOW(GPIOA_LED1))
  110.  #define VAL_GPIOA_AFRL              (PIN_AFIO_AF(GPIOA_ZIO_D32, 0U) |       \
  111.                                       PIN_AFIO_AF(GPIOA_RMII_REF_CLK, 11U) | \
  112.                                       PIN_AFIO_AF(GPIOA_RMII_MDIO, 11U) |    \
  113. @@ -646,7 +645,7 @@
  114.                                       PIN_AFIO_AF(GPIOA_USB_DP, 10U) |       \
  115.                                       PIN_AFIO_AF(GPIOA_SWDIO, 0U) |         \
  116.                                       PIN_AFIO_AF(GPIOA_SWCLK, 0U) |         \
  117. -                                     PIN_AFIO_AF(GPIOA_ZIO_D20, 0U))
  118. +                                     PIN_AFIO_AF(GPIOA_LED1, 0U))
  119.  
  120.  /*
  121.   * GPIOB setup:
  122. @@ -665,8 +664,8 @@
  123.   * PB11 - ZIO_D35 TIM2_CH4          (input pullup).
  124.   * PB12 - ZIO_D19 I2S2_WS           (input pullup).
  125.   * PB13 - ZIO_D18 I2S2_CK RMII_TXD1 (alternate 11).
  126. - * PB14 - LED3                      (output pushpull maximum).
  127. - * PB15 - ZIO_D17 I2S2_SD           (input pullup).
  128. + * PB14 - USB_DM                    (alternate 12).
  129. + * PB15 - USB_DP                    (alternate 12).
  130.   */
  131.  #define VAL_GPIOB_MODER             (PIN_MODE_OUTPUT(GPIOB_ZIO_D33) |       \
  132.                                       PIN_MODE_INPUT(GPIOB_ZIO_A6) |         \
  133. @@ -681,9 +680,8 @@
  134.                                       PIN_MODE_INPUT(GPIOB_ZIO_D36) |        \
  135.                                       PIN_MODE_INPUT(GPIOB_ZIO_D35) |        \
  136.                                       PIN_MODE_INPUT(GPIOB_ZIO_D19) |        \
  137. -                                     PIN_MODE_ALTERNATE(GPIOB_ZIO_D18) |    \
  138. -                                     PIN_MODE_OUTPUT(GPIOB_LED3) |          \
  139. -                                     PIN_MODE_INPUT(GPIOB_ZIO_D17))
  140. +                                     PIN_MODE_ALTERNATE(GPIOB_USB_DM) |     \
  141. +                                     PIN_MODE_ALTERNATE(GPIOB_USB_DP))
  142.  #define VAL_GPIOB_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D33) |    \
  143.                                       PIN_OTYPE_PUSHPULL(GPIOB_ZIO_A6) |     \
  144.                                       PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D27) |    \
  145. @@ -698,8 +696,8 @@
  146.                                       PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D35) |    \
  147.                                       PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D19) |    \
  148.                                       PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D18) |    \
  149. -                                     PIN_OTYPE_PUSHPULL(GPIOB_LED3) |       \
  150. -                                     PIN_OTYPE_PUSHPULL(GPIOB_ZIO_D17))
  151. +                                     PIN_OTYPE_PUSHPULL(GPIOB_USB_DM) |     \
  152. +                                     PIN_OTYPE_PUSHPULL(GPIOB_USB_DP))
  153.  #define VAL_GPIOB_OSPEEDR           (PIN_OSPEED_HIGH(GPIOB_ZIO_D33) |       \
  154.                                       PIN_OSPEED_HIGH(GPIOB_ZIO_A6) |        \
  155.                                       PIN_OSPEED_VERYLOW(GPIOB_ZIO_D27) |    \
  156. @@ -714,8 +712,8 @@
  157.                                       PIN_OSPEED_HIGH(GPIOB_ZIO_D35) |       \
  158.                                       PIN_OSPEED_HIGH(GPIOB_ZIO_D19) |       \
  159.                                       PIN_OSPEED_HIGH(GPIOB_ZIO_D18) |       \
  160. -                                     PIN_OSPEED_HIGH(GPIOB_LED3) |          \
  161. -                                     PIN_OSPEED_HIGH(GPIOB_ZIO_D17))
  162. +                                     PIN_OSPEED_HIGH(GPIOB_USB_DM) |        \
  163. +                                     PIN_OSPEED_HIGH(GPIOB_USB_DP))
  164.  #define VAL_GPIOB_PUPDR             (PIN_PUPDR_FLOATING(GPIOB_ZIO_D33) |    \
  165.                                       PIN_PUPDR_PULLUP(GPIOB_ZIO_A6) |       \
  166.                                       PIN_PUPDR_PULLUP(GPIOB_ZIO_D27) |      \
  167. @@ -730,8 +728,8 @@
  168.                                       PIN_PUPDR_PULLUP(GPIOB_ZIO_D35) |      \
  169.                                       PIN_PUPDR_PULLUP(GPIOB_ZIO_D19) |      \
  170.                                       PIN_PUPDR_PULLUP(GPIOB_ZIO_D18) |      \
  171. -                                     PIN_PUPDR_FLOATING(GPIOB_LED3) |       \
  172. -                                     PIN_PUPDR_PULLUP(GPIOB_ZIO_D17))
  173. +                                     PIN_PUPDR_FLOATING(GPIOB_USB_DM) |     \
  174. +                                     PIN_PUPDR_FLOATING(GPIOB_USB_DP))
  175.  #define VAL_GPIOB_ODR               (PIN_ODR_LOW(GPIOB_ZIO_D33) |           \
  176.                                       PIN_ODR_HIGH(GPIOB_ZIO_A6) |           \
  177.                                       PIN_ODR_HIGH(GPIOB_ZIO_D27) |          \
  178. @@ -746,8 +744,8 @@
  179.                                       PIN_ODR_HIGH(GPIOB_ZIO_D35) |          \
  180.                                       PIN_ODR_HIGH(GPIOB_ZIO_D19) |          \
  181.                                       PIN_ODR_HIGH(GPIOB_ZIO_D18) |          \
  182. -                                     PIN_ODR_LOW(GPIOB_LED3) |              \
  183. -                                     PIN_ODR_HIGH(GPIOB_ZIO_D17))
  184. +                                     PIN_ODR_HIGH(GPIOB_USB_DM) |           \
  185. +                                     PIN_ODR_HIGH(GPIOB_USB_DP))
  186.  #define VAL_GPIOB_AFRL              (PIN_AFIO_AF(GPIOB_ZIO_D33, 0U) |       \
  187.                                       PIN_AFIO_AF(GPIOB_ZIO_A6, 0U) |        \
  188.                                       PIN_AFIO_AF(GPIOB_ZIO_D27, 0U) |       \
  189. @@ -762,8 +760,8 @@
  190.                                       PIN_AFIO_AF(GPIOB_ZIO_D35, 0U) |       \
  191.                                       PIN_AFIO_AF(GPIOB_ZIO_D19, 0U) |       \
  192.                                       PIN_AFIO_AF(GPIOB_ZIO_D18, 11U) |      \
  193. -                                     PIN_AFIO_AF(GPIOB_LED3, 0U) |          \
  194. -                                     PIN_AFIO_AF(GPIOB_ZIO_D17, 0U))
  195. +                                     PIN_AFIO_AF(GPIOB_USB_DM, 12U) |       \
  196. +                                     PIN_AFIO_AF(GPIOB_USB_DP, 12U))
  197.  
  198.  /*
  199.   * GPIOC setup:
  200. diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.h b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
  201. index 1063dc09f..b8e6a3383 100644
  202. --- a/os/hal/ports/STM32/STM32F4xx/hal_lld.h
  203. +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
  204. @@ -140,22 +140,28 @@
  205.  /**
  206.   * @brief   RTC HSE divider setting.
  207.   */
  208. +#if STM32_RTCSEL == STM32_RTCSEL_HSEDIV
  209.  #if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31)) ||            \
  210.      defined(__DOXYGEN__)
  211.  #define STM32_RTCPRE                (STM32_RTCPRE_VALUE << 16)
  212.  #else
  213.  #error "invalid STM32_RTCPRE value specified"
  214.  #endif
  215. +#else
  216. +#define STM32_RTCPRE                0
  217. +#endif
  218.  
  219.  /**
  220.   * @brief   HSE divider toward RTC clock.
  221.   */
  222. +#if STM32_RTCSEL == STM32_RTCSEL_HSEDIV
  223.  #if ((STM32_RTCPRE_VALUE >= 2) && (STM32_RTCPRE_VALUE <= 31))  ||           \
  224.      defined(__DOXYGEN__)
  225.  #define STM32_HSEDIVCLK             (STM32_HSECLK / STM32_RTCPRE_VALUE)
  226.  #else
  227.  #error "invalid STM32_RTCPRE value specified"
  228.  #endif
  229. +#endif
  230.  
  231.  /**
  232.   * @brief   RTC clock.
  233. diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
  234. index 87903a6b4..6b6d1ed87 100644
  235. --- a/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
  236. +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
  237. @@ -1717,7 +1717,7 @@
  238.  /**
  239.   * @brief   PLLI2S activation flag.
  240.   */
  241. -#define STM32_ACTIVATE_PLLI2S       TRUE
  242. +#define STM32_ACTIVATE_PLLI2S       FALSE
  243.  #else
  244.  #define STM32_ACTIVATE_PLLI2S       FALSE
  245.  #endif
  246. diff --git a/testhal/STM32/STM32F2xx/USB_CDC/mcuconf.h b/testhal/STM32/STM32F2xx/USB_CDC/mcuconf.h
  247. index dfbc9c73c..b9892c0cc 100644
  248. --- a/testhal/STM32/STM32F2xx/USB_CDC/mcuconf.h
  249. +++ b/testhal/STM32/STM32F2xx/USB_CDC/mcuconf.h
  250. @@ -44,20 +44,20 @@
  251.  #define STM32_CLOCK48_REQUIRED              TRUE
  252.  #define STM32_SW                            STM32_SW_PLL
  253.  #define STM32_PLLSRC                        STM32_PLLSRC_HSE
  254. -#define STM32_PLLM_VALUE                    8
  255. +#define STM32_PLLM_VALUE                    26
  256.  #define STM32_PLLN_VALUE                    240
  257.  #define STM32_PLLP_VALUE                    2
  258.  #define STM32_PLLQ_VALUE                    5
  259.  #define STM32_HPRE                          STM32_HPRE_DIV1
  260.  #define STM32_PPRE1                         STM32_PPRE1_DIV4
  261.  #define STM32_PPRE2                         STM32_PPRE2_DIV2
  262. -#define STM32_RTCSEL                        STM32_RTCSEL_LSI
  263. -#define STM32_RTCPRE_VALUE                  8
  264. +#define STM32_RTCSEL                        STM32_RTCSEL_NOCLOCK
  265. +#define STM32_RTCPRE_VALUE                  0
  266.  #define STM32_MCO1SEL                       STM32_MCO1SEL_HSI
  267.  #define STM32_MCO1PRE                       STM32_MCO1PRE_DIV1
  268.  #define STM32_MCO2SEL                       STM32_MCO2SEL_SYSCLK
  269. -#define STM32_MCO2PRE                       STM32_MCO2PRE_DIV5
  270. -#define STM32_I2SSRC                        STM32_I2SSRC_CKIN
  271. +#define STM32_MCO2PRE                       STM32_MCO2PRE_DIV1
  272. +#define STM32_I2SSRC                        STM32_I2SSRC_PLLI2S
  273.  #define STM32_PLLI2SN_VALUE                 192
  274.  #define STM32_PLLI2SR_VALUE                 5
  275.  #define STM32_PVD_ENABLE                    FALSE
  276. @@ -324,8 +324,8 @@
  277.  /*
  278.   * USB driver system settings.
  279.   */
  280. -#define STM32_USB_USE_OTG1                  TRUE
  281. -#define STM32_USB_USE_OTG2                  FALSE
  282. +#define STM32_USB_USE_OTG1                  FALSE
  283. +#define STM32_USB_USE_OTG2                  TRUE
  284.  #define STM32_USB_OTG1_IRQ_PRIORITY         14
  285.  #define STM32_USB_OTG2_IRQ_PRIORITY         14
  286.  #define STM32_USB_OTG1_RX_FIFO_SIZE         512
  287. diff --git a/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c b/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c
  288. index f3e69c237..e35ff0925 100644
  289. --- a/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c
  290. +++ b/testhal/STM32/STM32F2xx/USB_CDC/usbcfg.c
  291. @@ -20,11 +20,11 @@
  292.  SerialUSBDriver SDU1;
  293.  
  294.  /*
  295. - * Endpoints to be used for USBD1.
  296. + * Endpoints to be used for USBD2.
  297.   */
  298. -#define USBD1_DATA_REQUEST_EP           1
  299. -#define USBD1_DATA_AVAILABLE_EP         1
  300. -#define USBD1_INTERRUPT_REQUEST_EP      2
  301. +#define USBD2_DATA_REQUEST_EP           1
  302. +#define USBD2_DATA_AVAILABLE_EP         1
  303. +#define USBD2_INTERRUPT_REQUEST_EP      2
  304.  
  305.  /*
  306.   * USB Device Descriptor.
  307. @@ -102,7 +102,7 @@ static const uint8_t vcom_configuration_descriptor_data[67] = {
  308.    USB_DESC_BYTE         (0x01),         /* bSlaveInterface0 (Data Class
  309.                                             Interface).                      */
  310.    /* Endpoint 2 Descriptor.*/
  311. -  USB_DESC_ENDPOINT     (USBD1_INTERRUPT_REQUEST_EP|0x80,
  312. +  USB_DESC_ENDPOINT     (USBD2_INTERRUPT_REQUEST_EP|0x80,
  313.                           0x03,          /* bmAttributes (Interrupt).        */
  314.                           0x0008,        /* wMaxPacketSize.                  */
  315.                           0xFF),         /* bInterval.                       */
  316. @@ -118,12 +118,12 @@ static const uint8_t vcom_configuration_descriptor_data[67] = {
  317.                                             4.7).                            */
  318.                           0x00),         /* iInterface.                      */
  319.    /* Endpoint 3 Descriptor.*/
  320. -  USB_DESC_ENDPOINT     (USBD1_DATA_AVAILABLE_EP,       /* bEndpointAddress.*/
  321. +  USB_DESC_ENDPOINT     (USBD2_DATA_AVAILABLE_EP,       /* bEndpointAddress.*/
  322.                           0x02,          /* bmAttributes (Bulk).             */
  323.                           0x0040,        /* wMaxPacketSize.                  */
  324.                           0x00),         /* bInterval.                       */
  325.    /* Endpoint 1 Descriptor.*/
  326. -  USB_DESC_ENDPOINT     (USBD1_DATA_REQUEST_EP|0x80,    /* bEndpointAddress.*/
  327. +  USB_DESC_ENDPOINT     (USBD2_DATA_REQUEST_EP|0x80,    /* bEndpointAddress.*/
  328.                           0x02,          /* bmAttributes (Bulk).             */
  329.                           0x0040,        /* wMaxPacketSize.                  */
  330.                           0x00)          /* bInterval.                       */
  331. @@ -275,8 +275,8 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
  332.      /* Enables the endpoints specified into the configuration.
  333.         Note, this callback is invoked from an ISR so I-Class functions
  334.         must be used.*/
  335. -    usbInitEndpointI(usbp, USBD1_DATA_REQUEST_EP, &ep1config);
  336. -    usbInitEndpointI(usbp, USBD1_INTERRUPT_REQUEST_EP, &ep2config);
  337. +    usbInitEndpointI(usbp, USBD2_DATA_REQUEST_EP, &ep1config);
  338. +    usbInitEndpointI(usbp, USBD2_INTERRUPT_REQUEST_EP, &ep2config);
  339.  
  340.      /* Resetting the state of the CDC subsystem.*/
  341.      sduConfigureHookI(&SDU1);
  342. @@ -335,8 +335,8 @@ const USBConfig usbcfg = {
  343.   * Serial over USB driver configuration.
  344.   */
  345.  const SerialUSBConfig serusbcfg = {
  346. -  &USBD1,
  347. -  USBD1_DATA_REQUEST_EP,
  348. -  USBD1_DATA_AVAILABLE_EP,
  349. -  USBD1_INTERRUPT_REQUEST_EP
  350. +  &USBD2,
  351. +  USBD2_DATA_REQUEST_EP,
  352. +  USBD2_DATA_AVAILABLE_EP,
  353. +  USBD2_INTERRUPT_REQUEST_EP
  354.  };
  355.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement