diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-04-29 16:35:57 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-04-29 16:35:57 +1000 |
commit | 81c19da89f6055ee19ebcb7c5fc786bd82dadbe8 (patch) | |
tree | dfd23b6b98ef83d1cf310aed697106e85b41e7fc /drivers/gaudio/vs1053/gaudio_play_board_template.h | |
parent | 70c96543fcd20a0d323170e4f8392a0494de2cd4 (diff) | |
download | uGFX-81c19da89f6055ee19ebcb7c5fc786bd82dadbe8.tar.gz uGFX-81c19da89f6055ee19ebcb7c5fc786bd82dadbe8.tar.bz2 uGFX-81c19da89f6055ee19ebcb7c5fc786bd82dadbe8.zip |
First version vs1053 audio play driver. Compiles but not tested yet.
Diffstat (limited to 'drivers/gaudio/vs1053/gaudio_play_board_template.h')
-rw-r--r-- | drivers/gaudio/vs1053/gaudio_play_board_template.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/drivers/gaudio/vs1053/gaudio_play_board_template.h b/drivers/gaudio/vs1053/gaudio_play_board_template.h new file mode 100644 index 00000000..d6125bbc --- /dev/null +++ b/drivers/gaudio/vs1053/gaudio_play_board_template.h @@ -0,0 +1,71 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#ifndef GAUDIO_PLAY_BOARD_H +#define GAUDIO_PLAY_BOARD_H + +// Initialise the board +static void board_init(void) { + +} + +// Chip is initialised enough so we can talk fast to it +static void board_init_end(void) { + +} + +// Reset the board +static void board_reset(void) { + +} + +// Returns the state of the dreq pin +static bool board_dreq(void) { + +} + +// Start a command write +static void board_startcmdwrite(void) { + +} + +// End a command write +static void board_endcmdwrite(void) { + +} + +// Start a command read +static void board_startcmdread(void) { + +} + +// End a command read +static void board_endcmdread(void) { + +} + +// Start a data write +static void board_startdatawrite(void) { + +} + +// End a data write +static void board_enddatawrite(void) { + +} + +// Write data to the SPI port +static void board_spiwrite(const uint8_t *buf, unsigned len) { + +} + +// Read data from the SPI port +static void board_spiread(uint8_t *buf, unsigned len) { + +} + +#endif /* GAUDIO_PLAY_BOARD_H */ |