diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/as3525/ascodec-target.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/as3525/dma-target.h | 3 |
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 | ||
73 | void ascodec_init(void); | 73 | void ascodec_init(void) INIT_ATTR; |
74 | 74 | ||
75 | int ascodec_write(unsigned int index, unsigned int value); | 75 | int 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 | ||
35 | void dma_init(void); | 36 | void dma_init(void) INIT_ATTR; |
36 | void dma_enable_channel(int channel, void *src, void *dst, int peri, | 37 | void 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)); |