dropping multiple port device support

This commit is contained in:
hathach
2018-07-12 22:25:06 +07:00
parent 2d79023a5a
commit 3134d21b24
2 changed files with 15 additions and 26 deletions

View File

@@ -69,21 +69,10 @@ typedef struct {
// Must be defined by application
extern tud_desc_set_t tud_desc_set;
//--------------------------------------------------------------------+
// APPLICATION API (Multiple Root Ports)
// Should be used only with MCU that support more than 1 ports
// APPLICATION API
//--------------------------------------------------------------------+
bool tud_n_mounted(uint8_t rhport);
//--------------------------------------------------------------------+
// APPLICATION API (Single Port)
// Should be used with MCU supporting only 1 USB port for code simplicity
//--------------------------------------------------------------------+
static inline bool tud_mounted(void)
{
return tud_n_mounted(0);
}
bool tud_mounted(void);
//--------------------------------------------------------------------+
// APPLICATION CALLBACK