summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-27 12:00:29 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-27 12:00:29 +0000
commit435e08eae1502f520ce14b279cd2754093e195cb (patch)
treec34e4e445f87056b64a880c63af1c70b79f531e8 /firmware/target/arm/as3525
parentb36e721aa66e20595eb4441edaaddac76f8d5147 (diff)
downloadrockbox-435e08eae1502f520ce14b279cd2754093e195cb.tar.gz
rockbox-435e08eae1502f520ce14b279cd2754093e195cb.zip
mark some functions as init functions (discarded after init() has run)
tick_start, fmradio_i2c_init, pcm_init, pcm_postinit, pcm_play_dma_init Also add some as3525 target specific functions Make as3525v2 use this attribute git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26328 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-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));