diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/disk.h | 3 | ||||
-rw-r--r-- | firmware/export/mmc.h | 1 | ||||
-rw-r--r-- | firmware/export/nand.h | 1 | ||||
-rw-r--r-- | firmware/export/pcm-internal.h | 2 | ||||
-rw-r--r-- | firmware/export/pcm.h | 1 | ||||
-rw-r--r-- | firmware/export/power.h | 2 | ||||
-rw-r--r-- | firmware/export/ramdisk.h | 1 | ||||
-rw-r--r-- | firmware/export/scroll_engine.h | 1 | ||||
-rw-r--r-- | firmware/export/sd.h | 1 | ||||
-rw-r--r-- | firmware/export/tuner.h | 1 | ||||
-rw-r--r-- | firmware/export/usb.h | 3 |
11 files changed, 15 insertions, 2 deletions
diff --git a/firmware/export/disk.h b/firmware/export/disk.h index ece0e2644f..8d6b41b5bd 100644 --- a/firmware/export/disk.h +++ b/firmware/export/disk.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #ifndef _DISK_H_ | 21 | #ifndef _DISK_H_ |
22 | #define _DISK_H_ | 22 | #define _DISK_H_ |
23 | 23 | ||
24 | #include "config.h" | ||
24 | #include "mv.h" /* for volume definitions */ | 25 | #include "mv.h" /* for volume definitions */ |
25 | 26 | ||
26 | struct partinfo { | 27 | struct partinfo { |
@@ -38,7 +39,7 @@ struct partinfo { | |||
38 | struct partinfo* disk_init(IF_MD_NONVOID(int drive)); | 39 | struct partinfo* disk_init(IF_MD_NONVOID(int drive)); |
39 | struct partinfo* disk_partinfo(int partition); | 40 | struct partinfo* disk_partinfo(int partition); |
40 | 41 | ||
41 | void disk_init_subsystem(void); /* Initialises mutexes */ | 42 | void disk_init_subsystem(void) INIT_ATTR; /* Initialises mutexes */ |
42 | int disk_mount_all(void); /* returns the # of successful mounts */ | 43 | int disk_mount_all(void); /* returns the # of successful mounts */ |
43 | int disk_mount(int drive); | 44 | int disk_mount(int drive); |
44 | int disk_unmount_all(void); | 45 | int disk_unmount_all(void); |
diff --git a/firmware/export/mmc.h b/firmware/export/mmc.h index 7e72cb0846..4c7e9c0926 100644 --- a/firmware/export/mmc.h +++ b/firmware/export/mmc.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __MMC_H__ | 23 | #define __MMC_H__ |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ | 27 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ |
27 | 28 | ||
28 | struct storage_info; | 29 | struct storage_info; |
diff --git a/firmware/export/nand.h b/firmware/export/nand.h index 13d559486c..58751ab298 100644 --- a/firmware/export/nand.h +++ b/firmware/export/nand.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __NAND_H__ | 23 | #define __NAND_H__ |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ | 27 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ |
27 | 28 | ||
28 | struct storage_info; | 29 | struct storage_info; |
diff --git a/firmware/export/pcm-internal.h b/firmware/export/pcm-internal.h index d881963ebd..89d895fe4b 100644 --- a/firmware/export/pcm-internal.h +++ b/firmware/export/pcm-internal.h | |||
@@ -22,6 +22,8 @@ | |||
22 | #ifndef PCM_INTERNAL_H | 22 | #ifndef PCM_INTERNAL_H |
23 | #define PCM_INTERNAL_H | 23 | #define PCM_INTERNAL_H |
24 | 24 | ||
25 | #include "config.h" | ||
26 | |||
25 | /* Cheapo buffer align macro to align to the 16-16 PCM size */ | 27 | /* Cheapo buffer align macro to align to the 16-16 PCM size */ |
26 | #define ALIGN_AUDIOBUF(start, size) \ | 28 | #define ALIGN_AUDIOBUF(start, size) \ |
27 | ({ (start) = (void *)(((uintptr_t)(start) + 3) & ~3); \ | 29 | ({ (start) = (void *)(((uintptr_t)(start) + 3) & ~3); \ |
diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h index 40d5afc0ba..4a7a5b3193 100644 --- a/firmware/export/pcm.h +++ b/firmware/export/pcm.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define PCM_PLAYBACK_H | 22 | #define PCM_PLAYBACK_H |
23 | 23 | ||
24 | #include <string.h> /* size_t */ | 24 | #include <string.h> /* size_t */ |
25 | #include "config.h" | ||
25 | 26 | ||
26 | #define DMA_REC_ERROR_DMA (-1) | 27 | #define DMA_REC_ERROR_DMA (-1) |
27 | #ifdef HAVE_SPDIF_REC | 28 | #ifdef HAVE_SPDIF_REC |
diff --git a/firmware/export/power.h b/firmware/export/power.h index 137f40cb01..d46b9ba924 100644 --- a/firmware/export/power.h +++ b/firmware/export/power.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef _POWER_H_ | 21 | #ifndef _POWER_H_ |
22 | #define _POWER_H_ | 22 | #define _POWER_H_ |
23 | 23 | ||
24 | #include "config.h" | ||
25 | |||
24 | #if CONFIG_CHARGING | 26 | #if CONFIG_CHARGING |
25 | enum power_input_flags { | 27 | enum power_input_flags { |
26 | /* No external power source? Default. */ | 28 | /* No external power source? Default. */ |
diff --git a/firmware/export/ramdisk.h b/firmware/export/ramdisk.h index 5135e38301..c478c78882 100644 --- a/firmware/export/ramdisk.h +++ b/firmware/export/ramdisk.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __RAMDISK_H__ | 23 | #define __RAMDISK_H__ |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ | 27 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ |
27 | 28 | ||
28 | struct storage_info; | 29 | struct storage_info; |
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 0fe6fe464a..55f4120893 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #ifndef __SCROLL_ENGINE_H__ | 25 | #ifndef __SCROLL_ENGINE_H__ |
26 | #define __SCROLL_ENGINE_H__ | 26 | #define __SCROLL_ENGINE_H__ |
27 | 27 | ||
28 | #include "config.h" | ||
28 | #include <lcd.h> | 29 | #include <lcd.h> |
29 | #include "file.h" | 30 | #include "file.h" |
30 | 31 | ||
diff --git a/firmware/export/sd.h b/firmware/export/sd.h index 43c961efb3..1c3c429508 100644 --- a/firmware/export/sd.h +++ b/firmware/export/sd.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #define __SD_H__ | 23 | #define __SD_H__ |
24 | 24 | ||
25 | #include <stdbool.h> | 25 | #include <stdbool.h> |
26 | #include "config.h" | ||
26 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ | 27 | #include "mv.h" /* for HAVE_MULTIDRIVE or not */ |
27 | 28 | ||
28 | #ifdef HAVE_BOOTLOADER_USB_MODE | 29 | #ifdef HAVE_BOOTLOADER_USB_MODE |
diff --git a/firmware/export/tuner.h b/firmware/export/tuner.h index 6fedc0f785..694da7cc6c 100644 --- a/firmware/export/tuner.h +++ b/firmware/export/tuner.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #ifndef __TUNER_H__ | 22 | #ifndef __TUNER_H__ |
23 | #define __TUNER_H__ | 23 | #define __TUNER_H__ |
24 | 24 | ||
25 | #include "config.h" | ||
25 | #include "hwcompat.h" | 26 | #include "hwcompat.h" |
26 | 27 | ||
27 | /** Settings to the tuner layer **/ | 28 | /** Settings to the tuner layer **/ |
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 3baacc5420..ae6d59b497 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #ifndef _USB_H_ | 21 | #ifndef _USB_H_ |
22 | #define _USB_H_ | 22 | #define _USB_H_ |
23 | 23 | ||
24 | #include "config.h" | ||
24 | #include "kernel.h" | 25 | #include "kernel.h" |
25 | #include "button.h" | 26 | #include "button.h" |
26 | 27 | ||
@@ -103,7 +104,7 @@ struct usb_transfer_completion_event_data | |||
103 | void usb_init(void) INIT_ATTR; | 104 | void usb_init(void) INIT_ATTR; |
104 | void usb_enable(bool on); | 105 | void usb_enable(bool on); |
105 | void usb_attach(void); | 106 | void usb_attach(void); |
106 | void usb_start_monitoring(void); | 107 | void usb_start_monitoring(void) INIT_ATTR; |
107 | void usb_close(void); | 108 | void usb_close(void); |
108 | void usb_acknowledge(long id); | 109 | void usb_acknowledge(long id); |
109 | void usb_wait_for_disconnect(struct event_queue *q); | 110 | void usb_wait_for_disconnect(struct event_queue *q); |