mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
iPod Classic: use PMU interrupts to detect USB and FW
Change-Id: I9be733e1a943ddeb99335d362f81f74879eeb94b
This commit is contained in:
parent
f6ed4f8306
commit
daee722455
6 changed files with 44 additions and 22 deletions
|
|
@ -122,7 +122,7 @@ bool dbg_hw_info(void)
|
|||
_DEBUG_PRINTF("brightness value: %d", pmu_read(0x28));
|
||||
line++;
|
||||
_DEBUG_PRINTF("USB present: %s",
|
||||
pmu_usb_present() ? "true" : "false");
|
||||
(power_input_status() & POWER_INPUT_USB) ? "true" : "false");
|
||||
#if CONFIG_CHARGING
|
||||
_DEBUG_PRINTF("FW present: %s",
|
||||
pmu_firewire_present() ? "true" : "false");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue