35#if !defined(USE_PHY_COM_PORT)
36#define USE_VIRTUAL_COM_PORT
40#if !defined(ACTIVE_PLATFORM)
41#define ACTIVE_PLATFORM STM32_PLATFORM
44#if (ACTIVE_PLATFORM == STM32_PLATFORM)
47#error "No/Invalid active platform selected"
59#if defined(DEV_AD4692)
60#define ACTIVE_DEVICE_NAME "ad4692"
61#define NO_OF_CHANNELS 16
62#define HW_MEZZANINE_NAME "EVAL-AD4692-ARDZ"
64#warning No/Unsupported ADxxxxy symbol defined. AD4692 defined
66#define ACTIVE_DEVICE_NAME "ad4692"
67#define NO_OF_CHANNELS 16
68#define HW_MEZZANINE_NAME "EVAL-AD4692-ARDZ"
71#define AD4692_AS_SLOT_REG(n) (0x100 + (n))
72#define ADC_RESOLUTION 16
75#if !defined(DEVICE_NAME)
76#define DEVICE_NAME "DEV_AD4692"
80#define FIRMWARE_NAME "ad4692_iio"
82#if !defined(PLATFORM_NAME)
83#define PLATFORM_NAME HW_CARRIER_NAME
87#define IIO_UART_BAUD_RATE (230400)
90#if defined(USE_VIRTUAL_COM_PORT)
91#define CONSOLE_STDIO_PORT_AVAILABLE
99#define BYTES_PER_SAMPLE sizeof(uint16_t)
102#define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8)
104#define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
105#define CONV_TRIGGER_DUTY_CYCLE_NSEC(x) (CONV_TRIGGER_PERIOD_NSEC(x) / 10)
108#define AD4692_VREF 4096000
111#define AD4692_SHIFT_N 3
114#define CNV_ON_TIME 50
117#define N_CYCLE_OFFSET 2
120#define NUM_OF_IIO_DEVICES 2
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_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_uart_desc * uart_iio_com_desc
Definition app_config.c:158
int32_t init_pwm(void)
Initialize the PWM interface.
Definition app_config.c:259
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
struct no_os_irq_init_param trigger_gpio_irq_params
Definition app_config.c:78
int32_t init_interrupt(void)
Initialize the IRQ contoller.
Definition app_config.c:199
struct no_os_gpio_desc * cnv_gpio_desc
Definition app_config.c:150
struct no_os_pwm_desc * spi_burst_pwm_desc
Definition app_config.c:186
struct no_os_pwm_init_param pwm_spi_burst_init
Definition app_config.c:132
void ad4692_data_capture_callback(void *ctx)
Interrupt Service Routine to monitor end of conversion event.
Definition ad4692_iio.c:1691
int init_gpio(void)
Initialize the GPIO peripheral.
Definition app_config.c:231
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.