29#define CONTINUOUS_DATA_CAPTURE     0 
   30#define BURST_DATA_CAPTURE          1 
   33#define UNIPOLAR_MODE           0 
   34#define PSEUDO_BIPOLAR_MODE     1 
   38#define SPI_INTERRUPT                   1 
   41#if !defined(DATA_CAPTURE_MODE) 
   42#define DATA_CAPTURE_MODE     CONTINUOUS_DATA_CAPTURE 
   46#if !defined(ACTIVE_PLATFORM) 
   47#define ACTIVE_PLATFORM     STM32_PLATFORM 
   53#if !defined(INTERFACE_MODE) 
   54#define INTERFACE_MODE   SPI_DMA 
   60#if !defined(USE_PHY_COM_PORT) 
   61#define USE_VIRTUAL_COM_PORT 
   68#if (ACTIVE_PLATFORM == STM32_PLATFORM) 
   70#define HW_CARRIER_NAME             TARGET_NAME 
   72#define uart_extra_init_params        stm32_uart_extra_init_params 
   73#define spi_extra_init_params         stm32_spi_extra_init_params 
   74#define cnv_extra_init_params         stm32_gpio_cnv_extra_init_params 
   75#define pwm_extra_init_params         stm32_pwm_cnv_extra_init_params 
   76#define pwm_gpio_extra_init_params    stm32_pwm_gpio_extra_init_params 
   77#define bsy_extra_init_params         stm32_gpio_gp0_extra_init_params 
   78#define gp1_extra_init_params         stm32_gpio_gp1_extra_init_params 
   79#define trigger_gpio_irq_extra_params stm32_gpio_irq_extra_init_params 
   80#define reset_extra_init_params       stm32_gpio_reset_extra_init_params 
   81#define cs_extra_init_params          stm32_cs_extra_init_params 
   82#define tx_trigger_extra_init_params  stm32_tx_trigger_extra_init_params 
   83#define cs_pwm_gpio_extra_init_params stm32_cs_pwm_gpio_extra_init_params 
   84#define vcom_extra_init_params      stm32_vcom_extra_init_params 
   86#error "No/Invalid active platform selected" 
   98#if defined(DEV_AD4696) 
   99#define ACTIVE_DEVICE       ID_AD4696 
  100#define ACTIVE_DEVICE_NAME  "ad4696" 
  101#define HW_MEZZANINE_NAME   "EVAL-AD4696-ARDZ" 
  102#define NO_OF_CHANNELS      16 
  103#elif defined(DEV_AD4697) 
  104#define ACTIVE_DEVICE       ID_AD4697 
  105#define ACTIVE_DEVICE_NAME  "ad4697" 
  106#define HW_MEZZANINE_NAME   "EVAL-AD4697-ARDZ" 
  107#define NO_OF_CHANNELS      8 
  109#warning No/Unsupported ADxxxxy symbol defined. AD4696 defined 
  111#define ACTIVE_DEVICE       ID_AD4696 
  112#define ACTIVE_DEVICE_NAME  "ad4696" 
  113#define HW_MEZZANINE_NAME   "EVAL-AD4696-ARDZ" 
  114#define NO_OF_CHANNELS      16 
  117#define ADC_RESOLUTION      16 
  124#define DEFAULT_POLARITY_MODE    UNIPOLAR_MODE 
  127#define ADC_MAX_COUNT_UNIPOLAR  (uint32_t)((1 << ADC_RESOLUTION) - 1) 
  130#define ADC_MAX_COUNT_BIPOLAR   (uint32_t)(1 << (ADC_RESOLUTION-1)) 
  133#define IIO_UART_BAUD_RATE  (230400) 
  136#if !defined(DEVICE_NAME) 
  137#define DEVICE_NAME     "DEV_AD4697" 
  141#define FIRMWARE_NAME   "ad469x_iio" 
  143#if !defined(PLATFORM_NAME) 
  144#define PLATFORM_NAME   HW_CARRIER_NAME 
  150#define VIRTUAL_COM_PORT_VID    0x0456 
  151#define VIRTUAL_COM_PORT_PID    0xb66c 
  153#define VIRTUAL_COM_SERIAL_NUM  (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME)) 
  156#define IIO_UART_BAUD_RATE  (230400) 
  159#if defined(USE_VIRTUAL_COM_PORT) 
  161#define CONSOLE_STDIO_PORT_AVAILABLE 
  174#define BYTES_PER_SAMPLE    sizeof(uint16_t)     
  177#define CHN_STORAGE_BITS    (BYTES_PER_SAMPLE * 8) 
  187extern struct no_os_pwm_desc *
pwm_desc;
 
  190#if (INTERFACE_MODE == SPI_DMA) 
struct no_os_irq_ctrl_desc * trigger_irq_desc
Definition app_config.c:103
 
int32_t init_system(void)
Initialize the system peripherals.
Definition app_config.c:185
 
struct no_os_pwm_init_param pwm_init_params
Definition app_config.h:149
 
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:170
 
struct no_os_pwm_desc * tx_trigger_desc
Definition app_config.c:143
 
struct no_os_pwm_desc * pwm_desc
Definition app_config.c:106
 
struct no_os_uart_desc * uart_iio_com_desc
Definition app_config.c:158
 
struct no_os_gpio_init_param pwm_gpio_params
Definition app_config.c:87
 
int32_t init_pwm(void)
Initialize the PWM interface.
Definition app_config.c:259
 
uint32_t data_read
Definition app_support.c:49
 
volatile uint8_t * buff_start_addr
Definition ad405x_iio.c:140
 
struct no_os_gpio_init_param cs_pwm_gpio_params
Definition app_config.c:189
 
struct no_os_pwm_init_param cs_init_params
Definition app_config.c:119
 
uint32_t global_nb_of_samples
Definition ad469x_iio.c:284
 
void burst_capture_callback(void *context)
Interrupt Service Routine to monitor end of conversion event.
Definition ad469x_iio.c:1023
 
volatile struct iio_device_data * global_iio_dev_data
Definition ad469x_iio.c:281
 
struct no_os_dma_init_param ad469x_dma_init_param
Definition app_config.c:181
 
The file contain common macros that needs to be followed same across all the projects.
 
Header file for STM32 platform configurations.