summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/disk.h3
-rw-r--r--firmware/export/mmc.h1
-rw-r--r--firmware/export/nand.h1
-rw-r--r--firmware/export/pcm-internal.h2
-rw-r--r--firmware/export/pcm.h1
-rw-r--r--firmware/export/power.h2
-rw-r--r--firmware/export/ramdisk.h1
-rw-r--r--firmware/export/scroll_engine.h1
-rw-r--r--firmware/export/sd.h1
-rw-r--r--firmware/export/tuner.h1
-rw-r--r--firmware/export/usb.h3
-rw-r--r--firmware/include/core_alloc.h3
-rw-r--r--firmware/target/arm/as3525/ascodec-target.h1
13 files changed, 18 insertions, 3 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
26struct partinfo { 27struct partinfo {
@@ -38,7 +39,7 @@ struct partinfo {
38struct partinfo* disk_init(IF_MD_NONVOID(int drive)); 39struct partinfo* disk_init(IF_MD_NONVOID(int drive));
39struct partinfo* disk_partinfo(int partition); 40struct partinfo* disk_partinfo(int partition);
40 41
41void disk_init_subsystem(void); /* Initialises mutexes */ 42void disk_init_subsystem(void) INIT_ATTR; /* Initialises mutexes */
42int disk_mount_all(void); /* returns the # of successful mounts */ 43int disk_mount_all(void); /* returns the # of successful mounts */
43int disk_mount(int drive); 44int disk_mount(int drive);
44int disk_unmount_all(void); 45int 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
28struct storage_info; 29struct 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
28struct storage_info; 29struct 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
25enum power_input_flags { 27enum 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
28struct storage_info; 29struct 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
103void usb_init(void) INIT_ATTR; 104void usb_init(void) INIT_ATTR;
104void usb_enable(bool on); 105void usb_enable(bool on);
105void usb_attach(void); 106void usb_attach(void);
106void usb_start_monitoring(void); 107void usb_start_monitoring(void) INIT_ATTR;
107void usb_close(void); 108void usb_close(void);
108void usb_acknowledge(long id); 109void usb_acknowledge(long id);
109void usb_wait_for_disconnect(struct event_queue *q); 110void usb_wait_for_disconnect(struct event_queue *q);
diff --git a/firmware/include/core_alloc.h b/firmware/include/core_alloc.h
index 0ac7e5b73d..d234947db1 100644
--- a/firmware/include/core_alloc.h
+++ b/firmware/include/core_alloc.h
@@ -3,12 +3,13 @@
3#define __CORE_ALLOC_H__ 3#define __CORE_ALLOC_H__
4#include <string.h> 4#include <string.h>
5#include <stdbool.h> 5#include <stdbool.h>
6#include "config.h"
6#include "buflib.h" 7#include "buflib.h"
7 8
8/* All functions below are wrappers for functions in buflib.h, except 9/* All functions below are wrappers for functions in buflib.h, except
9 * they have a predefined context 10 * they have a predefined context
10 */ 11 */
11void core_allocator_init(void); 12void core_allocator_init(void) INIT_ATTR;
12int core_alloc(const char* name, size_t size); 13int core_alloc(const char* name, size_t size);
13int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks *ops); 14int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks *ops);
14int core_alloc_maximum(const char* name, size_t *size, struct buflib_callbacks *ops); 15int core_alloc_maximum(const char* name, size_t *size, struct buflib_callbacks *ops);
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h
index 7e1a3b7424..ece8c21dd0 100644
--- a/firmware/target/arm/as3525/ascodec-target.h
+++ b/firmware/target/arm/as3525/ascodec-target.h
@@ -27,6 +27,7 @@
27 27
28#ifndef SIMULATOR 28#ifndef SIMULATOR
29 29
30#include "config.h"
30#include "as3514.h" 31#include "as3514.h"
31#include "kernel.h" /* for struct semaphore */ 32#include "kernel.h" /* for struct semaphore */
32#include "clock-target.h" /* for AS3525_I2C_PRESCALER */ 33#include "clock-target.h" /* for AS3525_I2C_PRESCALER */