ugfx/drivers/gaudio/gadc/gaudio_record_config.h

60 lines
1.7 KiB
C
Raw Normal View History

/*
2013-06-15 11:37:22 +00:00
* This file is subject to the terms of the GFX License. If a copy of
2013-05-03 14:36:17 +00:00
* the license was not distributed with this file, you can obtain one at:
*
2013-07-21 20:20:37 +00:00
* http://ugfx.org/license.html
2013-05-03 14:36:17 +00:00
*/
2013-02-28 23:04:52 +00:00
/**
* @file drivers/gaudio/gadc/gaudio_record_config.h
* @brief GAUDIN Record Driver config file.
2013-02-28 23:04:52 +00:00
*
* @addtogroup GAUDIO
2013-02-28 23:04:52 +00:00
* @{
*/
#ifndef GAUDIO_RECORD_CONFIG_H
#define GAUDIO_RECORD_CONFIG_H
2013-02-28 23:04:52 +00:00
#if GFX_USE_GAUDIO && GAUDIO_NEED_RECORD
2013-02-28 23:04:52 +00:00
/*===========================================================================*/
/* Driver hardware support. */
/*===========================================================================*/
/**
* @brief The audio record sample type
2013-02-28 23:04:52 +00:00
* @details For this driver it matches the cpu sample type
*/
typedef adcsample_t audio_record_sample_t;
2013-02-28 23:04:52 +00:00
/**
* @brief The maximum sample frequency supported by this audio device
* @details For this driver it matches the GADC maximum high speed sample rate
*/
#define GAUDIO_RECORD_MAX_SAMPLE_FREQUENCY GADC_MAX_HIGH_SPEED_SAMPLERATE
2013-02-28 23:04:52 +00:00
/**
* @brief The number of bits in a sample
* @details For this driver it matches the cpu sample bits
*/
#define GAUDIO_RECORD_BITS_PER_SAMPLE GADC_BITS_PER_SAMPLE
2013-02-28 23:04:52 +00:00
/**
* @brief The format of an audio sample
* @details For this driver it matches the cpu sample format
*/
#define GAUDIO_RECORD_SAMPLE_FORMAT GADC_SAMPLE_FORMAT
2013-02-28 23:04:52 +00:00
/**
* For the GAUDIO driver that uses GADC - all the remaining config definitions are specific
2013-02-28 23:04:52 +00:00
* to the board.
*/
/* Include the user supplied board definitions */
#include "gaudio_record_board.h"
2013-02-28 23:04:52 +00:00
#endif /* GFX_USE_GAUDIO && GAUDIO_NEED_RECORD */
2013-02-28 23:04:52 +00:00
#endif /* GAUDIO_RECORD_CONFIG_H */
2013-02-28 23:04:52 +00:00
/** @} */