diff options
Diffstat (limited to 'fw/fe310/eos/dev/drv/pcm1770.c')
-rw-r--r-- | fw/fe310/eos/dev/drv/pcm1770.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/drv/pcm1770.c b/fw/fe310/eos/dev/drv/pcm1770.c new file mode 100644 index 0000000..c617ae9 --- /dev/null +++ b/fw/fe310/eos/dev/drv/pcm1770.c @@ -0,0 +1,12 @@ +#include <stdlib.h> +#include <stdint.h> + +#include "platform.h" +#include "pcm1770.h" + +void pcm1770_reg_write(uint8_t addr, uint8_t val) { + drv_spi_cs_set(); + drv_spi_xchg8(addr, 0); + drv_spi_xchg8(val, 0); + drv_spi_cs_clear(); +} |