1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/common/stm32: rename cfg_usb_otg_hs_fs.h to clarify the usage

The `fs` in the file name means that on-chip FS PHY is configured for USB OTG HS. The file is renamed to `cfg_usb_otg_hs_phy_fs.h`
- to clarify that USB OTG HS is just configured with PHY FS and not HS and FS,
- to allow a configuration of USB OTG FS and HS in one file called `cfg_usb_otg_hs_fs.h` or whatever, and
- to allow a configuration of USB OTG HS with ULPI PHY in a file called `cfg_usb_otg_hs_phy_ulpi.h`.
f
This commit is contained in:
Gunar Schorcht 2022-10-02 10:37:16 +02:00
parent 2b088f3910
commit d2f7fd6a0e
2 changed files with 9 additions and 5 deletions

View File

@ -11,13 +11,17 @@
* @{
*
* @file
* @brief Common configuration for STM32 OTG HS peripheral with FS phy
* @brief Common configuration for STM32 OTG HS peripheral with on-chip FS PHY
*
* All STM32 boards which use the on-chip FS PHY for the USB OTG HS peripheral
* use the same configuration. Therefore a common configuration file can be
* used for these boards.
*
* @author Koen Zandberg <koen@bergzand.net>
*/
#ifndef CFG_USB_OTG_HS_FS_H
#define CFG_USB_OTG_HS_FS_H
#ifndef CFG_USB_OTG_HS_PHY_FS_H
#define CFG_USB_OTG_HS_PHY_FS_H
#include "periph_cpu.h"
#include "usbdev_synopsys_dwc2.h"
@ -57,5 +61,5 @@ static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[] = {
}
#endif
#endif /* CFG_USB_OTG_HS_FS_H */
#endif /* CFG_USB_OTG_HS_PHY_FS_H */
/** @} */

View File

@ -32,7 +32,7 @@
#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_timer_tim5.h"
#include "cfg_usb_otg_hs_fs.h"
#include "cfg_usb_otg_hs_phy_fs.h"
#ifdef __cplusplus
extern "C" {