22#include "no_os_gpio.h"
23#include "no_os_uart.h"
34#define SPI_INTERRUPT 1
37#define CYCLIC_STREAM 0
38#define ARBITRARY_STREAM 1
47#define ACTIVE_DEVICE_NAME "ad3530r"
50#if !defined(ACTIVE_PLATFORM)
51#define ACTIVE_PLATFORM STM32_PLATFORM
55#if !defined(DATA_STREAM_MODE)
56#define DATA_STREAM_MODE CYCLIC_STREAM
62#if !defined(USE_PHY_COM_PORT)
63#define USE_VIRTUAL_COM_PORT
69#if !defined(INTERFACE_MODE)
70#define INTERFACE_MODE SPI_DMA
73#if (ACTIVE_PLATFORM == STM32_PLATFORM)
76#error "No/Invalid active platform selected"
80#define HW_MEZZANINE_NAME "EVAL-AD3530RARDZ"
83#define DAC_RESOLUTION 16
86#define DAC_MAX_CHANNELS 16
89#define DAC_REF_VOLTAGE 2.5
92#define DAC_MAX_COUNT (uint32_t)((1 << DAC_RESOLUTION) - 1)
95#define FIRMWARE_NAME "ad353xr_iio"
97#define DEVICE_NAME "DEV_AD3530R"
99#if !defined(PLATFORM_NAME)
100#define PLATFORM_NAME HW_CARRIER_NAME
107#define VIRTUAL_COM_PORT_VID 0x0456
108#define VIRTUAL_COM_PORT_PID 0xb66c
111#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
114#define IIO_UART_BAUD_RATE (230400)
117#if defined(USE_PHY_COM_PORT)
119#if (ACTIVE_PLATFORM == STM32_PLATFORM)
120#define CONSOLE_STDIO_PORT_AVAILABLE
124#define CONSOLE_STDIO_PORT_AVAILABLE
131#define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
132#define CONV_TRIGGER_DUTY_CYCLE_NSEC(x,y) (((float)y / 100) * CONV_TRIGGER_PERIOD_NSEC(x))
141extern struct no_os_pwm_desc *
pwm_desc;
151#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_dma_init_param ad3530r_dma_init_param
Definition app_config.c:146
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_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_gpio_desc * trigger_gpio_desc
Definition app_config.c:164
struct no_os_gpio_desc * csb_gpio_desc
Definition app_config.c:173
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
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.