Skip to content

Commit 8cd5750

Browse files
committed
same70: patch: Add missing USBHS macros
Add missing macros for the DEVCTRL register: - USBHS_DEVCTRL_SPDCONF_HIGH_SPEED - USBHS_DEVCTRL_SPDCONF_FORCED_FS Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
1 parent 065e57c commit 8cd5750

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

asf/sam/include/same70/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ Patch List:
5050
* Fix PWM_CMP register name.
5151
* Fix PWM_CH_NUM register name.
5252
* Fix SMC_CS_NUMBER register name.
53+
* Add missing macros for USBHS_DEVCTRL register.

asf/sam/include/same70/component/usbhs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,11 @@ typedef union {
369369
#define USBHS_DEVCTRL_SPDCONF(value) (USBHS_DEVCTRL_SPDCONF_Msk & ((value) << USBHS_DEVCTRL_SPDCONF_Pos))
370370
#define USBHS_DEVCTRL_SPDCONF_NORMAL_Val _U_(0x0) /**< (USBHS_DEVCTRL) The peripheral starts in Full-speed mode and performs a high-speed reset to switch to High-speed mode if the host is high-speed-capable. */
371371
#define USBHS_DEVCTRL_SPDCONF_LOW_POWER_Val _U_(0x1) /**< (USBHS_DEVCTRL) For a better consumption, if high speed is not needed. */
372+
#define USBHS_DEVCTRL_SPDCONF_HIGH_SPEED_Val _U_(0x2) /**< (USBHS_DEVCTRL) Forced high speed. */
373+
#define USBHS_DEVCTRL_SPDCONF_FORCED_FS_Val _U_(0x3) /**< (USBHS_DEVCTRL) The peripheral remains in Full-speed mode whatever the host speed capability. */
372374
#define USBHS_DEVCTRL_SPDCONF_NORMAL (USBHS_DEVCTRL_SPDCONF_NORMAL_Val << USBHS_DEVCTRL_SPDCONF_Pos) /**< (USBHS_DEVCTRL) The peripheral starts in Full-speed mode and performs a high-speed reset to switch to High-speed mode if the host is high-speed-capable. Position */
375+
#define USBHS_DEVCTRL_SPDCONF_HIGH_SPEED (USBHS_DEVCTRL_SPDCONF_HIGH_SPEED_Val << USBHS_DEVCTRL_SPDCONF_Pos) /**< (USBHS_DEVCTRL) Forced high speed. Position */
376+
#define USBHS_DEVCTRL_SPDCONF_FORCED_FS (USBHS_DEVCTRL_SPDCONF_FORCED_FS_Val << USBHS_DEVCTRL_SPDCONF_Pos) /**< (USBHS_DEVCTRL) The peripheral remains in Full-speed mode whatever the host speed capability. Position */
373377
#define USBHS_DEVCTRL_SPDCONF_LOW_POWER (USBHS_DEVCTRL_SPDCONF_LOW_POWER_Val << USBHS_DEVCTRL_SPDCONF_Pos) /**< (USBHS_DEVCTRL) For a better consumption, if high speed is not needed. Position */
374378
#define USBHS_DEVCTRL_LS_Pos 12 /**< (USBHS_DEVCTRL) Low-Speed Mode Force Position */
375379
#define USBHS_DEVCTRL_LS_Msk (_U_(0x1) << USBHS_DEVCTRL_LS_Pos) /**< (USBHS_DEVCTRL) Low-Speed Mode Force Mask */

0 commit comments

Comments
 (0)