X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_tcp_server%2Fcfg%2Fcfg_i2s.h;fp=boards%2Fsam3x-ek%2Fexamples%2Fsam3x-ek_tcp_server%2Fcfg%2Fcfg_i2s.h;h=6657157e5c73704c9b2d265f6e3d4e910f3b12f2;hb=2f4f8a91630ed4019ef0cb166cd3c93270b7a28e;hp=0000000000000000000000000000000000000000;hpb=36f86286c51f1bcfb9097d477d5b32e4b8c11563;p=bertos.git diff --git a/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_i2s.h b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_i2s.h new file mode 100644 index 00000000..6657157e --- /dev/null +++ b/boards/sam3x-ek/examples/sam3x-ek_tcp_server/cfg/cfg_i2s.h @@ -0,0 +1,74 @@ +/** + * \file + * + * + * \brief Configuration file for I2S module. + * + * + * \author Luca Ottaviano + */ + +#ifndef CFG_I2S_H +#define CFG_I2S_H + +/** + * Length of each play buffer. + * + * $WIZ$ type = "int" + */ +#define CONFIG_PLAY_BUF_LEN 8192 + +/** + * Sampling frequency of the audio file. + * + * $WIZ$ type = "int" + * $WIZ$ min = 32000 + * $WIZ$ max = 192000 + */ +#define CONFIG_SAMPLE_FREQ 44100UL + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define I2S_LOG_LEVEL LOG_LVL_INFO + +/** + * Module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define I2S_LOG_FORMAT LOG_FMT_TERSE + +#endif /* CFG_I2S_H */