diff options
| author | hathach <[email protected]> | 2018-12-12 12:01:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-12 12:01:15 +0700 |
| commit | 6c0b0917e15ca0acf7ce9bed0f3735a794abb807 (patch) | |
| tree | 0fb72ad69c8c38b5bbee83f3a0e5b63295caed3f /src/class/cdc/cdc_host.c | |
| parent | 6d86db3977aa60963d78d1bceaa7e3def60f1957 (diff) | |
rename descriptor_* helper to tu_desc_*
Diffstat (limited to 'src/class/cdc/cdc_host.c')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index d660cc39f..d6767d0a7 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -146,7 +146,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it uint8_t const * p_desc;
cdch_data_t * p_cdc;
- p_desc = descriptor_next ( (uint8_t const *) itf_desc );
+ p_desc = tu_desc_next(itf_desc);
p_cdc = &cdch_data[dev_addr-1];
p_cdc->itf_num = itf_desc->bInterfaceNumber;
@@ -165,7 +165,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it }
(*p_length) += p_desc[DESC_OFFSET_LEN];
- p_desc = descriptor_next(p_desc);
+ p_desc = tu_desc_next(p_desc);
}
if ( TUSB_DESC_ENDPOINT == p_desc[DESC_OFFSET_TYPE])
@@ -177,7 +177,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it p_cdc->ep_notif = ep_desc->bEndpointAddress;
(*p_length) += p_desc[DESC_OFFSET_LEN];
- p_desc = descriptor_next(p_desc);
+ p_desc = tu_desc_next(p_desc);
}
//------------- Data Interface (if any) -------------//
@@ -185,7 +185,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it (TUSB_CLASS_CDC_DATA == ((tusb_desc_interface_t const *) p_desc)->bInterfaceClass) )
{
(*p_length) += p_desc[DESC_OFFSET_LEN];
- p_desc = descriptor_next(p_desc);
+ p_desc = tu_desc_next(p_desc);
// data endpoints expected to be in pairs
for(uint32_t i=0; i<2; i++)
@@ -205,7 +205,7 @@ bool cdch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it }
(*p_length) += p_desc[DESC_OFFSET_LEN];
- p_desc = descriptor_next( p_desc );
+ p_desc = tu_desc_next( p_desc );
}
}
|
