19#include "no_os_gpio.h"
20#include "no_os_uart.h"
28#define SPI_INTERRUPT 1
38#define ACTIVE_DEVICE_NAME "ad5706r"
41#define AD5706_DAC_RESOLUTION 16
46#if !defined(USE_PHY_COM_PORT)
47#define USE_VIRTUAL_COM_PORT
51#if !defined(ACTIVE_PLATFORM)
52#define ACTIVE_PLATFORM STM32_PLATFORM
56#if !defined(INTERFACE_MODE)
57#define INTERFACE_MODE SPI_DMA
60#if (ACTIVE_PLATFORM == STM32_PLATFORM)
63#error "No/Invalid active platform selected"
67#if defined(USE_PHY_COM_PORT)
69#if (ACTIVE_PLATFORM == MBED_PLATFORM)
70#define CONSOLE_STDIO_PORT_AVAILABLE
78#define IIO_UART_BAUD_RATE (230400)
81#define FIRMWARE_NAME "ad5706r_iio"
83#if !defined(DEVICE_NAME)
84#define DEVICE_NAME "DEV_AD5706"
87#if !defined(PLATFORM_NAME)
88#define PLATFORM_NAME HW_CARRIER_NAME
95#define VIRTUAL_COM_PORT_VID 0x0456
96#define VIRTUAL_COM_PORT_PID 0xb66c
98#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
103#define FREQ_TO_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
106#define LDAC_DUTY_CYCLE_NSEC(x) (x * 0.5)
109#define DAC_UPDATE_DUTY_CYCLE_NSEC(x) (x * 0.05)
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
int32_t init_pwm(void)
Initialize the PWM interface.
Definition app_config.c:259
struct no_os_pwm_desc * ldac_pwm_desc
Definition app_config.c:133
struct no_os_pwm_init_param cs_init_params
Definition app_config.c:119
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:197
struct no_os_gpio_desc * gpio_ad0_desc
Definition app_config.c:228
struct no_os_gpio_init_param gpio_ldac_tg_params
Definition app_config.c:93
struct no_os_gpio_desc * gpio_ad1_desc
Definition app_config.c:231
struct no_os_gpio_init_param csb_gpio_init_param
Definition app_config.c:131
struct no_os_gpio_init_param ldac_pwm_gpio_params
Definition app_config.c:109
struct no_os_pwm_desc * dac_update_pwm_desc
Definition app_config.c:243
struct no_os_gpio_desc * gpio_ldac_tg_desc
Definition app_config.c:234
struct no_os_pwm_init_param tx_trigger_init_params
Definition app_config.c:121
struct no_os_gpio_desc * gpio_shutdown_desc
Definition app_config.c:237
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.