2018-07-11 22:01:38 -04:00
|
|
|
#ifndef _AUDIO_H_
|
|
|
|
#define _AUDIO_H_
|
|
|
|
|
|
|
|
#include "usf.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "memory.h"
|
|
|
|
|
2018-07-12 03:13:30 -04:00
|
|
|
struct ai_dma
|
|
|
|
{
|
2018-07-12 05:05:53 -04:00
|
|
|
uint32_t address;
|
|
|
|
uint32_t length;
|
|
|
|
unsigned int duration;
|
2018-07-12 03:13:30 -04:00
|
|
|
};
|
|
|
|
|
2018-07-11 22:01:38 -04:00
|
|
|
uint32_t AiReadLength(usf_state_t *);
|
|
|
|
void AiLenChanged(usf_state_t *);
|
|
|
|
void AiDacrateChanged(usf_state_t *, uint32_t value);
|
2018-07-12 03:13:30 -04:00
|
|
|
void AiTimerDone(usf_state_t *);
|
|
|
|
void AiQueueInt(usf_state_t *);
|
2018-07-11 22:01:38 -04:00
|
|
|
|
|
|
|
#endif
|