Go to the documentation of this file.
23 #ifndef __CX25821_AUDIO_H__
24 #define __CX25821_AUDIO_H__
26 #define USE_RISC_NOOP 1
27 #define LINES_PER_BUFFER 15
28 #define AUDIO_LINE_SIZE 128
31 #define NUMBER_OF_PROGRAMS 8
38 #define MAX_BUFFER_PROGRAM_SIZE \
39 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \
40 RISC_WRITECR_INSTRUCTION_SIZE * 4)
45 #define MAX_BUFFER_PROGRAM_SIZE \
46 (2 * LINES_PER_BUFFER * RISC_WRITE_INSTRUCTION_SIZE + \
47 RISC_NOOP_INSTRUCTION_SIZE * 4)
51 #define RISC_WRITE_INSTRUCTION_SIZE 12
52 #define RISC_JUMP_INSTRUCTION_SIZE 12
53 #define RISC_SKIP_INSTRUCTION_SIZE 4
54 #define RISC_SYNC_INSTRUCTION_SIZE 4
55 #define RISC_WRITECR_INSTRUCTION_SIZE 16
56 #define RISC_NOOP_INSTRUCTION_SIZE 4
58 #define MAX_AUDIO_DMA_BUFFER_SIZE \
59 (MAX_BUFFER_PROGRAM_SIZE * NUMBER_OF_PROGRAMS + \
60 RISC_SYNC_INSTRUCTION_SIZE)