summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-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 {
70 struct ascodec_request *next; 70 struct ascodec_request *next;
71}; 71};
72 72
73void ascodec_init(void); 73void ascodec_init(void) INIT_ATTR;
74 74
75int ascodec_write(unsigned int index, unsigned int value); 75int ascodec_write(unsigned int index, unsigned int value);
76 76
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 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#include "config.h" /* for INIT_ATTR */
22#include <stdbool.h> 23#include <stdbool.h>
23#include <stdlib.h> 24#include <stdlib.h>
24 25
@@ -32,7 +33,7 @@
32#define DMA_PERI_SD 5 /* embedded storage */ 33#define DMA_PERI_SD 5 /* embedded storage */
33#define DMA_PERI_DBOP 8 34#define DMA_PERI_DBOP 8
34 35
35void dma_init(void); 36void dma_init(void) INIT_ATTR;
36void dma_enable_channel(int channel, void *src, void *dst, int peri, 37void dma_enable_channel(int channel, void *src, void *dst, int peri,
37 int flow_controller, bool src_inc, bool dst_inc, 38 int flow_controller, bool src_inc, bool dst_inc,
38 size_t size, int nwords, void (*callback)(void)); 39 size_t size, int nwords, void (*callback)(void));