35#if !defined(ACTIVE_PLATFORM)
36#define ACTIVE_PLATFORM STM32_PLATFORM
52#if defined(DEV_CN0586)
53#define ACTIVE_DEVICE_NAME "ad5754r"
54#define DEVICE_NAME "DEV_CN0586"
55#define HW_MEZZANINE_NAME "EVAL-CN0586-ARDZ"
57#define ACTIVE_DEVICE_NAME "ad5754r"
58#define DEVICE_NAME "DEV_AD5754R"
59#define HW_MEZZANINE_NAME "EVAL-AD5754REBZ"
65#if !defined(USE_PHY_COM_PORT)
66#define USE_VIRTUAL_COM_PORT
70#define AD5754R_VREF 2.5
73#define DAC_MAX_COUNT_BIN_OFFSET (uint32_t)((1 << AD5754R_MAX_RESOLUTION) - 1)
76#define DAC_MAX_COUNT_2S_COMPL (uint32_t)(1 << (AD5754R_MAX_RESOLUTION-1))
81#if !defined(USE_TWOS_COMPLEMENT_CODING)
82#define USE_BINARY_CODING
86#if (ACTIVE_PLATFORM == STM32_PLATFORM)
88#define HW_CARRIER_NAME TARGET_NAME
89#define pwm_extra_init_params stm32_pwm_extra_init_params
90#define uart_extra_init_params stm32_uart_extra_init_params
91#define vcom_extra_init_params stm32_vcom_extra_init_params
92#define spi_extra_init_params stm32_spi_extra_init_params
93#define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params
94#define ldac_gpio_extra_init_params stm32_ldac_gpio_init_params
95#define clear_gpio_extra_init_params stm32_clear_gpio_init_params
96#define dac_gpio_ops stm32_gpio_ops
97#define trigger_gpio_handle 0
99#error "No/Invalid active platform selected"
105#define IIO_UART_BAUD_RATE (230400)
108#define FIRMWARE_NAME "ad5754r_iio"
110#if !defined(PLATFORM_NAME)
111#define PLATFORM_NAME HW_CARRIER_NAME
117#define VIRTUAL_COM_PORT_VID 0x0456
118#define VIRTUAL_COM_PORT_PID 0xb66c
120#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
123#if defined(USE_PHY_COM_PORT)
125#if (ACTIVE_PLATFORM == STM32_PLATFORM)
126#define CONSOLE_STDIO_PORT_AVAILABLE
130#define CONSOLE_STDIO_PORT_AVAILABLE
137#define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
138#define CONV_TRIGGER_DUTY_CYCLE_NSEC(x) ((CONV_TRIGGER_PERIOD_NSEC(x) * 9) / 10)
151extern struct no_os_pwm_desc *
pwm_desc;
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 * pwm_desc
Definition app_config.c:106
struct no_os_gpio_desc * trigger_gpio_desc
Definition app_config.c:164
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_gpio_init_param clear_gpio_params
Definition app_config.c:125
struct no_os_gpio_init_param ldac_gpio_params
Definition app_config.c:116
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.