diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/ata.h | 1 | ||||
-rw-r--r-- | firmware/export/backlight.h | 1 | ||||
-rw-r--r-- | firmware/export/button.h | 1 | ||||
-rw-r--r-- | firmware/export/config-gigabeat-s.h | 22 | ||||
-rw-r--r-- | firmware/export/usb.h | 5 |
5 files changed, 19 insertions, 11 deletions
diff --git a/firmware/export/ata.h b/firmware/export/ata.h index 35538f6354..9b5bd36a5b 100644 --- a/firmware/export/ata.h +++ b/firmware/export/ata.h | |||
@@ -48,6 +48,7 @@ extern bool ata_disk_is_active(void); | |||
48 | extern int ata_hard_reset(void); | 48 | extern int ata_hard_reset(void); |
49 | extern int ata_soft_reset(void); | 49 | extern int ata_soft_reset(void); |
50 | extern int ata_init(void); | 50 | extern int ata_init(void); |
51 | extern void ata_close(void); | ||
51 | extern int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf); | 52 | extern int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf); |
52 | extern int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf); | 53 | extern int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf); |
53 | extern void ata_spin(void); | 54 | extern void ata_spin(void); |
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 35c0f86178..895328d98e 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -28,6 +28,7 @@ void backlight_set_timeout(int value); | |||
28 | 28 | ||
29 | #ifdef HAVE_BACKLIGHT | 29 | #ifdef HAVE_BACKLIGHT |
30 | void backlight_init(void); | 30 | void backlight_init(void); |
31 | void backlight_close(void); | ||
31 | 32 | ||
32 | int backlight_get_current_timeout(void); | 33 | int backlight_get_current_timeout(void); |
33 | 34 | ||
diff --git a/firmware/export/button.h b/firmware/export/button.h index 6decf6ec69..82ea81ffab 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -29,6 +29,7 @@ | |||
29 | extern struct event_queue button_queue; | 29 | extern struct event_queue button_queue; |
30 | 30 | ||
31 | void button_init (void); | 31 | void button_init (void); |
32 | void button_close(void); | ||
32 | int button_queue_count(void); | 33 | int button_queue_count(void); |
33 | long button_get (bool block); | 34 | long button_get (bool block); |
34 | long button_get_w_tmo(int ticks); | 35 | long button_get_w_tmo(int ticks); |
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h index d74f05ce9c..a0c05dad45 100644 --- a/firmware/export/config-gigabeat-s.h +++ b/firmware/export/config-gigabeat-s.h | |||
@@ -54,15 +54,6 @@ | |||
54 | /* Define this for LCD backlight available */ | 54 | /* Define this for LCD backlight available */ |
55 | #define HAVE_BACKLIGHT | 55 | #define HAVE_BACKLIGHT |
56 | 56 | ||
57 | #define HAVE_LCD_ENABLE | ||
58 | |||
59 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
60 | |||
61 | /* Main LCD backlight brightness range and defaults */ | ||
62 | #define MIN_BRIGHTNESS_SETTING 0 | ||
63 | #define MAX_BRIGHTNESS_SETTING 24 | ||
64 | #define DEFAULT_BRIGHTNESS_SETTING 12 | ||
65 | |||
66 | /* Define this if you have a software controlled poweroff */ | 57 | /* Define this if you have a software controlled poweroff */ |
67 | #define HAVE_SW_POWEROFF | 58 | #define HAVE_SW_POWEROFF |
68 | 59 | ||
@@ -78,7 +69,20 @@ | |||
78 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ | 69 | #define HW_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | \ |
79 | SAMPR_CAP_11) | 70 | SAMPR_CAP_11) |
80 | 71 | ||
72 | #ifndef BOOTLOADER | ||
73 | /* Not for bootloader */ | ||
74 | #define HAVE_LCD_ENABLE | ||
75 | |||
76 | #define HAVE_BACKLIGHT_BRIGHTNESS | ||
77 | |||
78 | /* Main LCD backlight brightness range and defaults */ | ||
79 | #define MIN_BRIGHTNESS_SETTING 0 | ||
80 | #define MAX_BRIGHTNESS_SETTING 24 | ||
81 | #define DEFAULT_BRIGHTNESS_SETTING 12 | ||
82 | |||
83 | |||
81 | #define HAVE_HEADPHONE_DETECTION | 84 | #define HAVE_HEADPHONE_DETECTION |
85 | #endif /* BOOTLOADER */ | ||
82 | 86 | ||
83 | #ifndef SIMULATOR | 87 | #ifndef SIMULATOR |
84 | 88 | ||
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 4500cb2cde..ff1f55cd35 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -31,7 +31,8 @@ enum { | |||
31 | USB_TRANSFER_COMPLETION, | 31 | USB_TRANSFER_COMPLETION, |
32 | USB_REQUEST_DISK, | 32 | USB_REQUEST_DISK, |
33 | USB_RELEASE_DISK, | 33 | USB_RELEASE_DISK, |
34 | USB_REQUEST_REBOOT | 34 | USB_REQUEST_REBOOT, |
35 | USB_QUIT, | ||
35 | }; | 36 | }; |
36 | 37 | ||
37 | 38 | ||
@@ -89,7 +90,7 @@ struct usb_transfer_completion_event_data | |||
89 | void usb_init(void); | 90 | void usb_init(void); |
90 | void usb_enable(bool on); | 91 | void usb_enable(bool on); |
91 | void usb_start_monitoring(void); | 92 | void usb_start_monitoring(void); |
92 | void usb_stop_monitoring(void); | 93 | void usb_close(void); |
93 | void usb_acknowledge(long id); | 94 | void usb_acknowledge(long id); |
94 | void usb_wait_for_disconnect(struct event_queue *q); | 95 | void usb_wait_for_disconnect(struct event_queue *q); |
95 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); | 96 | int usb_wait_for_disconnect_w_tmo(struct event_queue *q, int ticks); |