diff options
| author | hathach <[email protected]> | 2018-12-14 15:28:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-14 15:30:54 +0700 |
| commit | 2a60427bdc7d23d7c1ab1e687f5a8d9555a69f15 (patch) | |
| tree | 9a5a170d6cd7dc6e01558922109995c01116aca1 /src/host/hub.c | |
| parent | a3713f801d97b1903593a53c02da682acb3acee0 (diff) | |
rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency
Diffstat (limited to 'src/host/hub.c')
| -rw-r--r-- | src/host/hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/hub.c b/src/host/hub.c index 6b87e935e..16560a812 100644 --- a/src/host/hub.c +++ b/src/host/hub.c @@ -97,7 +97,7 @@ bool hub_port_clear_feature_subtask(uint8_t hub_addr, uint8_t hub_port, uint8_t hub_port_status_response_t * p_port_status;
p_port_status = (hub_port_status_response_t *) hub_enum_buffer;
- TU_ASSERT( !BIT_TEST_(p_port_status->status_change.value, feature-16) );
+ TU_ASSERT( !TU_BIT_TEST(p_port_status->status_change.value, feature-16) );
return true;
}
@@ -225,7 +225,7 @@ void hub_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xf for (uint8_t port=1; port <= p_hub->port_number; port++)
{
// TODO HUB ignore bit0 hub_status_change
- if ( BIT_TEST_(p_hub->status_change, port) )
+ if ( TU_BIT_TEST(p_hub->status_change, port) )
{
hcd_event_t event =
{
|
