mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
make dcd_connect/dcd_disconnect optional with attr weak
This commit is contained in:
parent
6e9bed69ce
commit
1954a73536
@ -59,14 +59,15 @@ typedef enum
|
||||
}usbd_bus_event_type_t;
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/* Controller API
|
||||
/* Device API (Weak is optional)
|
||||
*------------------------------------------------------------------*/
|
||||
bool dcd_init (uint8_t rhport);
|
||||
void dcd_connect (uint8_t rhport);
|
||||
void dcd_disconnect (uint8_t rhport);
|
||||
void dcd_set_address (uint8_t rhport, uint8_t dev_addr);
|
||||
void dcd_set_config (uint8_t rhport, uint8_t config_num);
|
||||
|
||||
void dcd_connect (uint8_t rhport) ATTR_WEAK;
|
||||
void dcd_disconnect (uint8_t rhport) ATTR_WEAK;
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/* Event Function
|
||||
* Called by DCD to notify USBD
|
||||
|
Loading…
x
Reference in New Issue
Block a user