![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
Macros | |
#define | HSOTG_ENABLE() |
This macro is used to enable HSOTG function. More... | |
#define | HSOTG_DISABLE() |
This macro is used to disable HSOTG function. More... | |
#define | HSOTG_ENABLE_PHY() |
This macro is used to enable USB PHY. More... | |
#define | HSOTG_DISABLE_PHY() |
This macro is used to disable USB PHY. More... | |
#define | HSOTG_ENABLE_ID_DETECT() |
This macro is used to enable ID detection function. More... | |
#define | HSOTG_DISABLE_ID_DETECT() |
This macro is used to disable ID detection function. More... | |
#define | HSOTG_ENABLE_WAKEUP() |
This macro is used to enable HSOTG wake-up function. More... | |
#define | HSOTG_DISABLE_WAKEUP() |
This macro is used to disable HSOTG wake-up function. More... | |
#define | HSOTG_SET_VBUS_EN_POL(u32Pol) |
This macro is used to set the polarity of USB_VBUS_EN pin. More... | |
#define | HSOTG_SET_VBUS_STS_POL(u32Pol) |
This macro is used to set the polarity of USB_VBUS_ST pin. More... | |
#define | HSOTG_ENABLE_INT(u32Mask) |
This macro is used to enable HSOTG related interrupts. More... | |
#define | HSOTG_DISABLE_INT(u32Mask) |
This macro is used to disable HSOTG related interrupts. More... | |
#define | HSOTG_GET_INT_FLAG(u32Mask) |
This macro is used to get HSOTG related interrupt flags. More... | |
#define | HSOTG_CLR_INT_FLAG(u32Mask) |
This macro is used to clear HSOTG related interrupt flags. More... | |
#define | HSOTG_GET_STATUS(u32Mask) |
This macro is used to get HSOTG related status. More... | |
#define HSOTG_CLR_INT_FLAG | ( | u32Mask | ) |
This macro is used to clear HSOTG related interrupt flags.
[in] | u32Mask | The combination of interrupt source. Each bit corresponds to a interrupt source. Valid values are listed below.
|
This macro will clear HSOTG related interrupt flags specified by u32Mask parameter.
#define HSOTG_DISABLE | ( | ) |
#define HSOTG_DISABLE_ID_DETECT | ( | ) |
#define HSOTG_DISABLE_INT | ( | u32Mask | ) |
This macro is used to disable HSOTG related interrupts.
[in] | u32Mask | The combination of interrupt source. Each bit corresponds to a interrupt source. Valid values are listed below.
|
This macro will disable HSOTG related interrupts specified by u32Mask parameter.
#define HSOTG_DISABLE_PHY | ( | ) |
#define HSOTG_DISABLE_WAKEUP | ( | ) |
#define HSOTG_ENABLE | ( | ) |
#define HSOTG_ENABLE_ID_DETECT | ( | ) |
#define HSOTG_ENABLE_INT | ( | u32Mask | ) |
This macro is used to enable HSOTG related interrupts.
[in] | u32Mask | The combination of interrupt source. Each bit corresponds to a interrupt source. Valid values are listed below.
|
This macro will enable HSOTG related interrupts specified by u32Mask parameter.
#define HSOTG_ENABLE_PHY | ( | ) |
#define HSOTG_ENABLE_WAKEUP | ( | ) |
#define HSOTG_GET_INT_FLAG | ( | u32Mask | ) |
This macro is used to get HSOTG related interrupt flags.
[in] | u32Mask | The combination of interrupt source. Each bit corresponds to a interrupt source. Valid values are listed below.
|
This macro will return HSOTG related interrupt flags specified by u32Mask parameter.
#define HSOTG_GET_STATUS | ( | u32Mask | ) |
This macro is used to get HSOTG related status.
[in] | u32Mask | The combination of user specified source. Valid values are listed below. |
This macro will return HSOTG related status specified by u32Mask parameter.
#define HSOTG_SET_VBUS_EN_POL | ( | u32Pol | ) |
This macro is used to set the polarity of USB_VBUS_EN pin.
[in] | u32Pol | The polarity selection. Valid values are listed below. |
This macro is used to set the polarity of external USB VBUS power switch enable signal.
#define HSOTG_SET_VBUS_STS_POL | ( | u32Pol | ) |
This macro is used to set the polarity of USB_VBUS_ST pin.
[in] | u32Pol | The polarity selection. Valid values are listed below. |
This macro is used to set the polarity of external USB VBUS power switch status signal.