25#define SPI_INTERRUPT 1
34#define AD552XR_DAC_RESOLUTION 16
39#if !defined(USE_PHY_COM_PORT)
40#define USE_VIRTUAL_COM_PORT
43#if !defined(ACTIVE_PLATFORM)
44#define ACTIVE_PLATFORM STM32_PLATFORM
47#if (ACTIVE_PLATFORM != STM32_PLATFORM)
48#error "No/Invalid active platform selected"
52#if !defined(INTERFACE_MODE)
53#define INTERFACE_MODE SPI_DMA
57#define AD552XR_MAX_SAMPLE_RATE (1E6)
59#if (INTERFACE_MODE == SPI_INTERRUPT)
63#define AD552XR_IIO_SAMPLE_RATE (10E3)
65#define AD552XR_IIO_SAMPLE_RATE (50E3)
67#elif (INTERFACE_MODE == SPI_DMA)
72#if (ACTIVE_PLATFORM == STM32_PLATFORM)
74#define spi_extra_init_params stm32_spi_extra_init_params
75#define spi_ops stm32_spi_ops
76#define i2c_extra_init_params stm32_i2c_extra_init_params
77#define i2c_ops stm32_i2c_ops
78#define vcom_ops stm32_usb_uart_ops
79#define vcom_extra_init_params stm32_vcom_extra_init_params
80#define uart_extra_init_params stm32_uart_extra_init_params
81#define uart_ops stm32_uart_ops
82#define gpio_output_extra_init_params stm32_gpio_output_extra_init_params
83#define gpio_input_extra_init_params stm32_gpio_input_extra_init_params
84#define gpio_ldac_tgp_pwm_extra_init_params stm32_gpio_ldac_tgp_pwm_extra_init_params
85#define gpio_cs_pwm_extra_init_params stm32_gpio_cs_pwm_extra_init_params
86#define gpio_ops stm32_gpio_ops
87#define pwm_ops stm32_pwm_ops
88#define irq_ops stm32_irq_ops
89#define dma_ops stm32_dma_ops
90#define pwm_tgp_extra_init_params stm32_pwm_tgp_extra_init_params
91#define pwm_tgp_trigger_mode_extra_init_params stm32_pwm_tgp_trigger_mode_extra_init_params
92#define pwm_dac_update_extra_init_params stm32_pwm_dac_update_extra_init_params
93#define pwm_dma_trigger_extra_init_params stm32_pwm_dma_trigger_extra_init_params
97#if defined(USE_VIRTUAL_COM_PORT)
100#define CONSOLE_STDIO_PORT_AVAILABLE
104#define IIO_UART_BAUD_RATE (230400)
107#define AD552XR_IIO_NUM_DEVICES 4
114#define HZ_NS_CONVERT(x) (uint32_t)((1.0 / x) * 1E9)
117#define LDAC_DUTY_CYCLE_NSEC(x) (x * 0.5)
135#if (INTERFACE_MODE == SPI_INTERRUPT)
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:172
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
struct no_os_uart_desc * uart_iio_comm_desc
Definition app_config.c:198
int32_t set_timer_prescaler(struct no_os_pwm_desc *desc, uint32_t prescaler)
Set prescaler for timer.
Definition app_config.c:447
struct no_os_uart_init_param uart_console_stdio_init_params
Definition app_config.c:72
struct no_os_gpio_init_param gpio_clear_n_init_params
Definition app_config.c:95
struct no_os_gpio_init_param gpio_md_addr1_init_params
Definition app_config.c:127
struct no_os_gpio_init_param gpio_ldac_tgpx_init_params[NUM_TGPx]
Definition app_config.c:138
struct no_os_gpio_init_param gpio_alarm_n_init_params
Definition app_config.c:111
struct no_os_uart_init_param uart_iio_comm_init_params
Definition app_config.c:28
struct no_os_irq_init_param irq_iio_trigger_init_params
Definition app_config.c:171
struct no_os_gpio_init_param gpio_reset_n_init_params
Definition app_config.c:103
struct no_os_i2c_init_param i2c_init_params
Definition app_config.c:43
struct no_os_gpio_init_param gpio_md_addr0_init_params
Definition app_config.c:119
#define NUM_TGPx
Definition app_config_stm32.h:73
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.