![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
Macros | |
#define | OTG_ENABLE() |
This macro is used to enable OTG function. More... | |
#define | OTG_DISABLE() |
This macro is used to disable OTG function. More... | |
#define | OTG_ENABLE_PHY() |
This macro is used to enable USB PHY. More... | |
#define | OTG_DISABLE_PHY() |
This macro is used to disable USB PHY. More... | |
#define | OTG_ENABLE_ID_DETECT() |
This macro is used to enable ID detection function. More... | |
#define | OTG_DISABLE_ID_DETECT() |
This macro is used to disable ID detection function. More... | |
#define | OTG_ENABLE_WAKEUP() |
This macro is used to enable OTG wake-up function. More... | |
#define | OTG_DISABLE_WAKEUP() |
This macro is used to disable OTG wake-up function. More... | |
#define | OTG_SET_VBUS_EN_POL(u32Pol) |
This macro is used to set the polarity of USB_VBUS_EN pin. More... | |
#define | OTG_SET_VBUS_STS_POL(u32Pol) |
This macro is used to set the polarity of USB_VBUS_ST pin. More... | |
#define | OTG_ENABLE_INT(u32Mask) |
This macro is used to enable OTG related interrupts. More... | |
#define | OTG_DISABLE_INT(u32Mask) |
This macro is used to disable OTG related interrupts. More... | |
#define | OTG_GET_INT_FLAG(u32Mask) |
This macro is used to get OTG related interrupt flags. More... | |
#define | OTG_CLR_INT_FLAG(u32Mask) |
This macro is used to clear OTG related interrupt flags. More... | |
#define | OTG_GET_STATUS(u32Mask) |
This macro is used to get OTG related status. More... | |
#define OTG_CLR_INT_FLAG | ( | u32Mask | ) |
This macro is used to clear OTG 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 OTG related interrupt flags specified by u32Mask parameter.
#define OTG_DISABLE | ( | ) |
#define OTG_DISABLE_ID_DETECT | ( | ) |
#define OTG_DISABLE_INT | ( | u32Mask | ) |
This macro is used to disable OTG 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 OTG related interrupts specified by u32Mask parameter.
#define OTG_DISABLE_PHY | ( | ) |
#define OTG_DISABLE_WAKEUP | ( | ) |
#define OTG_ENABLE | ( | ) |
#define OTG_ENABLE_ID_DETECT | ( | ) |
#define OTG_ENABLE_INT | ( | u32Mask | ) |
This macro is used to enable OTG 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 OTG related interrupts specified by u32Mask parameter.
#define OTG_ENABLE_PHY | ( | ) |
#define OTG_ENABLE_WAKEUP | ( | ) |
#define OTG_GET_INT_FLAG | ( | u32Mask | ) |
This macro is used to get OTG 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 OTG related interrupt flags specified by u32Mask parameter.
#define OTG_GET_STATUS | ( | u32Mask | ) |
This macro is used to get OTG related status.
[in] | u32Mask | The combination of user specified source. Valid values are listed below. |
This macro will return OTG related status specified by u32Mask parameter.
#define OTG_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 OTG_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.