diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-fmrecorder.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ondiofm.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ondiosp.h | 3 | ||||
-rw-r--r-- | firmware/export/config-recorderv2.h | 3 | ||||
-rw-r--r-- | firmware/export/usb.h | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h index 914ef60f79..a3f2597d5d 100644 --- a/firmware/export/config-fmrecorder.h +++ b/firmware/export/config-fmrecorder.h | |||
@@ -76,6 +76,9 @@ | |||
76 | /* Define this for LCD backlight available */ | 76 | /* Define this for LCD backlight available */ |
77 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ | 77 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ |
78 | 78 | ||
79 | /* define this if the unit can be powered or charged via USB */ | ||
80 | #define HAVE_USB_POWER | ||
81 | |||
79 | #define CONFIG_LCD LCD_SSD1815 | 82 | #define CONFIG_LCD LCD_SSD1815 |
80 | 83 | ||
81 | #define BOOTFILE_EXT ".ajz" | 84 | #define BOOTFILE_EXT ".ajz" |
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h index b052832bbc..9436b86f1e 100644 --- a/firmware/export/config-ondiofm.h +++ b/firmware/export/config-ondiofm.h | |||
@@ -90,6 +90,9 @@ | |||
90 | 90 | ||
91 | #define CONFIG_LCD LCD_SSD1815 | 91 | #define CONFIG_LCD LCD_SSD1815 |
92 | 92 | ||
93 | /* define this if the unit can be powered or charged via USB */ | ||
94 | #define HAVE_USB_POWER | ||
95 | |||
93 | #define BOOTFILE_EXT ".ajz" | 96 | #define BOOTFILE_EXT ".ajz" |
94 | #define BOOTFILE "ajbrec" BOOTFILE_EXT | 97 | #define BOOTFILE "ajbrec" BOOTFILE_EXT |
95 | 98 | ||
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h index 6c800b3a53..fd79d19cb7 100644 --- a/firmware/export/config-ondiosp.h +++ b/firmware/export/config-ondiosp.h | |||
@@ -78,6 +78,9 @@ | |||
78 | 78 | ||
79 | #define CONFIG_LCD LCD_SSD1815 | 79 | #define CONFIG_LCD LCD_SSD1815 |
80 | 80 | ||
81 | /* define this if the unit can be powered or charged via USB */ | ||
82 | #define HAVE_USB_POWER | ||
83 | |||
81 | #define BOOTFILE_EXT ".ajz" | 84 | #define BOOTFILE_EXT ".ajz" |
82 | #define BOOTFILE "ajbrec" BOOTFILE_EXT | 85 | #define BOOTFILE "ajbrec" BOOTFILE_EXT |
83 | 86 | ||
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h index 450222dd38..c75f0e6f12 100644 --- a/firmware/export/config-recorderv2.h +++ b/firmware/export/config-recorderv2.h | |||
@@ -76,6 +76,9 @@ | |||
76 | /* Define this for LCD backlight available */ | 76 | /* Define this for LCD backlight available */ |
77 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ | 77 | #define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */ |
78 | 78 | ||
79 | /* define this if the unit can be powered or charged via USB */ | ||
80 | #define HAVE_USB_POWER | ||
81 | |||
79 | #define CONFIG_LCD LCD_SSD1815 | 82 | #define CONFIG_LCD LCD_SSD1815 |
80 | 83 | ||
81 | #define BOOTFILE_EXT ".ajz" | 84 | #define BOOTFILE_EXT ".ajz" |
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index fc96c67166..e8602e7358 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -28,5 +28,8 @@ void usb_wait_for_disconnect(struct event_queue *q); | |||
28 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); | 28 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); |
29 | bool usb_inserted(void); /* return the official value, what's been reported to the threads */ | 29 | bool usb_inserted(void); /* return the official value, what's been reported to the threads */ |
30 | bool usb_detect(void); /* return the raw hardware value */ | 30 | bool usb_detect(void); /* return the raw hardware value */ |
31 | #ifdef HAVE_USB_POWER | ||
32 | bool usb_powered(void); | ||
33 | #endif | ||
31 | 34 | ||
32 | #endif | 35 | #endif |