mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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
This commit is contained in:
parent
b36e721aa6
commit
435e08eae1
6 changed files with 10 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue