Move I2S management to application side.

This commit is contained in:
Jared Boone
2016-02-05 15:22:28 -08:00
parent cefab197da
commit 9430c94dec
9 changed files with 32 additions and 30 deletions

View File

@@ -24,9 +24,22 @@
#include <cstdint>
#include "audio.hpp"
#include "buffer.hpp"
namespace audio {
struct sample_t {
union {
struct {
int16_t left;
int16_t right;
};
uint32_t raw;
};
};
using buffer_t = buffer_t<sample_t>;
namespace dma {
void init();