Skip to content

Commit

Permalink
Switch to new HAL for USB
Browse files Browse the repository at this point in the history
  • Loading branch information
GrumpyOldPizza committed May 23, 2020
1 parent 7b230a4 commit c845a3b
Show file tree
Hide file tree
Showing 25 changed files with 16,374 additions and 11,253 deletions.
Binary file modified system/STM32L0xx/Lib/libstm32l052xx.a
Binary file not shown.
Binary file modified system/STM32L0xx/Lib/libstm32l072xx.a
Binary file not shown.
Binary file modified system/STM32L0xx/Lib/libstm32l082xx.a
Binary file not shown.
3 changes: 2 additions & 1 deletion system/STM32L0xx/Source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CFLAGS = -mcpu=cortex-m0plus -mthumb -c -g -Os $(WARNINGS) -std=c99 -ffunction
ASFLAGS = -c -g -x assembler-with-cpp $(EXTRAS) $(DEFINES) $(INCLUDES)
WARNINGS = -Wall -Wextra -Wno-unused-parameter
EXTRAS = -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft
DEFINES = -DUSBD_SOF_ENABLE=1 -DUSBD_LPM_ENABLE=0 -DUSBD_BCD_ENABLE=0
DEFINES = -DUSBD_LPM_ENABLE=0 -DUSBD_BCD_ENABLE=0
INCLUDES = \
-I../../../system/CMSIS/Include \
-I../../../system/CMSIS/Device/ST/STM32L0xx/Include \
Expand Down Expand Up @@ -65,6 +65,7 @@ SRCS = \
./USB/Core/Src/usbd_ioreq.c \
./USB/HAL/Src/stm32l0xx_hal_pcd.c \
./USB/HAL/Src/stm32l0xx_hal_pcd_ex.c \
./USB/HAL/Src/stm32l0xx_ll_usb.c \
./USB/usbd_cdc_msc.c \
./USB/usbd_conf.c \
./USB/usbd_desc.c \
Expand Down
2 changes: 0 additions & 2 deletions system/STM32L0xx/Source/USB/Core/Inc/usbd_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef
USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev);
USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev);

#if (USBD_SOF_ENABLE == 1)
USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev);
#endif
USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum);
USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum);

Expand Down
2 changes: 0 additions & 2 deletions system/STM32L0xx/Source/USB/Core/Inc/usbd_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ typedef struct _Device_cb
/* Class Specific Endpoints*/
uint8_t (*DataIn) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum);
uint8_t (*DataOut) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum);
#if (USBD_SOF_ENABLE == 1)
uint8_t (*SOF) (struct _USBD_HandleTypeDef *pdev);
#endif
uint8_t (*IsoINIncomplete) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum);
uint8_t (*IsoOUTIncomplete) (struct _USBD_HandleTypeDef *pdev , uint8_t epnum);

Expand Down
2 changes: 0 additions & 2 deletions system/STM32L0xx/Source/USB/Core/Src/usbd_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev)
return USBD_OK;
}

#if (USBD_SOF_ENABLE == 1)
/**
* @brief USBD_SOF
* Handle SOF event
Expand All @@ -500,7 +499,6 @@ USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev)
}
return USBD_OK;
}
#endif

/**
* @brief USBD_IsoINIncomplete
Expand Down
6,573 changes: 3,424 additions & 3,149 deletions system/STM32L0xx/Source/USB/HAL/Inc/Legacy/stm32_hal_legacy.h

Large diffs are not rendered by default.

Loading

0 comments on commit c845a3b

Please sign in to comment.