Implement requested PR changes

Removes CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, and makes the manual padding
behavior standard.  Replaced unused variable name with TU_RESERVED.
This commit is contained in:
Jeremiah McCarthy
2021-02-18 13:26:03 -05:00
parent f8fbc0930b
commit 21f1cd4ec7
6 changed files with 10 additions and 59 deletions

View File

@@ -208,11 +208,7 @@ typedef volatile struct
uint32_t interrupt_routing : 1;
uint32_t remote_wakeup_connected : 1;
uint32_t remote_wakeup_enale : 1;
#if CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT
uint32_t unused : 21;
#else
uint32_t : 0;
#endif /* CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT */
uint32_t TU_RESERVED : 21;
}control_bit;
};
@@ -280,11 +276,7 @@ typedef volatile struct
uint32_t port_suspend_status_change : 1;
uint32_t port_over_current_indicator_change : 1;
uint32_t port_reset_status_change : 1;
#if CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT
uint32_t unused : 11;
#else
uint32_t : 0;
#endif /* CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT */
uint32_t TU_RESERVED : 11;
}rhport_status_bit[2];
};
}ohci_registers_t;