forked from len0rd/rockbox
Adding new setting to System Settings <Accessory Power Supply -- off by default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cea07eb2a4
commit
850a11250a
16 changed files with 100 additions and 16 deletions
|
|
@ -63,6 +63,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@
|
|||
/* Define if the device can wake from an RTC alarm */
|
||||
#define HAVE_RTC_ALARM
|
||||
|
||||
/* Define this if you can switch on/off the accessory power supply */
|
||||
#define HAVE_ACCESSORY_SUPPLY
|
||||
|
||||
/* Define this if you have a software controlled poweroff */
|
||||
#define HAVE_SW_POWEROFF
|
||||
|
||||
|
|
|
|||
|
|
@ -182,5 +182,7 @@ void reset_poweroff_timer(void);
|
|||
void cancel_shutdown(void);
|
||||
void shutdown_hw(void);
|
||||
void sys_poweroff(void);
|
||||
|
||||
#ifdef HAVE_ACCESSORY_SUPPLY
|
||||
void accessory_supply_set(bool);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue