X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=boards%2Fat91sam7x-ek%2Fbenchmark%2Fkernel_footprint_preempt%2Fcfg%2Fcfg_i2s.h;fp=boards%2Fat91sam7x-ek%2Fbenchmark%2Fkernel_footprint_preempt%2Fcfg%2Fcfg_i2s.h;h=52fa88481f8e731d13b32b7d5529c402b2156f6d;hb=6ae3b1774eae7a5514be758fcfbc66187617a860;hp=0000000000000000000000000000000000000000;hpb=cf0e85cf28635514f0e0956929605df8c2566882;p=bertos.git diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint_preempt/cfg/cfg_i2s.h b/boards/at91sam7x-ek/benchmark/kernel_footprint_preempt/cfg/cfg_i2s.h new file mode 100644 index 00000000..52fa8848 --- /dev/null +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint_preempt/cfg/cfg_i2s.h @@ -0,0 +1,75 @@ +/** + * \file + * + * + * \brief Configuration file for I2S module. + * + * \version $Id$ + * + * \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 */