From 081d251b574fa5707e37624d38fa29ae10ae919f Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Sat, 4 May 2024 18:08:28 +0200
Subject: [PATCH] Removed the static modifier from the F4 usb module.

---
 f4/usb/src/usb.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/f4/usb/src/usb.c b/f4/usb/src/usb.c
index 35ec8ed..ba5887a 100644
--- a/f4/usb/src/usb.c
+++ b/f4/usb/src/usb.c
@@ -22,7 +22,7 @@ unsigned short int usb_dma_phase_write_ptr;
   * @param  None
   * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
   */
-static int8_t usb_cdc_init(void)
+int8_t usb_cdc_init(void)
 {
   /* USER CODE BEGIN 3 */
   /* Set Application Buffers */
@@ -45,7 +45,7 @@ static int8_t usb_cdc_init(void)
   * @param  None
   * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
   */
-static int8_t usb_cdc_deinit(void)
+int8_t usb_cdc_deinit(void)
 {
   /* USER CODE BEGIN 4 */
   return (USBD_OK);
@@ -60,7 +60,7 @@ static int8_t usb_cdc_deinit(void)
   * @param  length: Number of data to be sent (in bytes)
   * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
   */
-static int8_t usb_cdc_control(uint8_t cmd, uint8_t* pbuf, uint16_t length)
+int8_t usb_cdc_control(uint8_t cmd, uint8_t* pbuf, uint16_t length)
 {
   /* USER CODE BEGIN 5 */
   switch (cmd)
@@ -138,7 +138,7 @@ static int8_t usb_cdc_control(uint8_t cmd, uint8_t* pbuf, uint16_t length)
   * @param  Len: Number of data received (in bytes)
   * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
   */
-static int8_t usb_cdc_receive(uint8_t* Buf, uint32_t *Len)
+int8_t usb_cdc_receive(uint8_t* Buf, uint32_t *Len)
 {
   int i=0;
  
@@ -165,7 +165,7 @@ static int8_t usb_cdc_receive(uint8_t* Buf, uint32_t *Len)
   /* USER CODE END 6 */
 }
 
-static int8_t usb_cdc_tx_complete(uint8_t *pbuf, uint32_t *Len, uint8_t epnum)
+int8_t usb_cdc_tx_complete(uint8_t *pbuf, uint32_t *Len, uint8_t epnum)
 {
   return (USBD_OK);
 }
-- 
GitLab