Skip to content

Commit eca96c6

Browse files
committed
comment out osal_task_delay if using os none
1 parent 4caa606 commit eca96c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/portable/ohci/ohci.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ TU_ATTR_ALWAYS_INLINE static inline void *_phys_addr(void *virtual_address)
169169
if (tusb_app_virt_to_phys) return tusb_app_virt_to_phys(virtual_address);
170170
return virtual_address;
171171
}
172+
172173
TU_ATTR_ALWAYS_INLINE static inline void *_virt_addr(void *physical_address)
173174
{
174175
if (tusb_app_phys_to_virt) return tusb_app_phys_to_virt(physical_address);
@@ -238,7 +239,10 @@ bool hcd_init(uint8_t rhport)
238239
OHCI_REG->control_bit.hc_functional_state = OHCI_CONTROL_FUNCSTATE_OPERATIONAL; // make HC's state to operational state TODO use this to suspend (save power)
239240
OHCI_REG->rh_status_bit.local_power_status_change = 1; // set global power for ports
240241

242+
#if CFG_TUSB_OS != OPT_OS_NONE
243+
// TODO as above delay
241244
osal_task_delay(OHCI_REG->rh_descriptorA_bit.power_on_to_good_time * 2); // Wait POTG after power up
245+
#endif
242246

243247
return true;
244248
}

0 commit comments

Comments
 (0)