summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/ascodec-target.h2
-rw-r--r--firmware/target/arm/as3525/dma-target.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h
index d3d095c365..a92fea9f61 100644
--- a/firmware/target/arm/as3525/ascodec-target.h
+++ b/firmware/target/arm/as3525/ascodec-target.h
@@ -70,7 +70,7 @@ struct ascodec_request {
struct ascodec_request *next;
};
-void ascodec_init(void);
+void ascodec_init(void) INIT_ATTR;
int ascodec_write(unsigned int index, unsigned int value);
diff --git a/firmware/target/arm/as3525/dma-target.h b/firmware/target/arm/as3525/dma-target.h
index 00897fa070..a64055984d 100644
--- a/firmware/target/arm/as3525/dma-target.h
+++ b/firmware/target/arm/as3525/dma-target.h
@@ -19,6 +19,7 @@
*
****************************************************************************/
+#include "config.h" /* for INIT_ATTR */
#include <stdbool.h>
#include <stdlib.h>
@@ -32,7 +33,7 @@
#define DMA_PERI_SD 5 /* embedded storage */
#define DMA_PERI_DBOP 8
-void dma_init(void);
+void dma_init(void) INIT_ATTR;
void dma_enable_channel(int channel, void *src, void *dst, int peri,
int flow_controller, bool src_inc, bool dst_inc,
size_t size, int nwords, void (*callback)(void));