34#ifdef FIRMWARE_VERSION
35#define GET_FIRMWARE_VERSION (FIRMWARE_VERSION)
37#define GET_FIRMWARE_VERSION NULL
43#if !defined(ACTIVE_PLATFORM)
44#define ACTIVE_PLATFORM STM32_PLATFORM
50#if !defined(USE_PHY_COM_PORT)
51#define USE_VIRTUAL_COM_PORT
65#if defined(DEV_LTC2672_12)
66#define ACTIVE_DEVICE_NAME "ltc2672-12"
67#define DEVICE_NAME "DEV_LTC2672_12"
68#define ACTIVE_DEVICE_ID LTC2672_12
69#define DAC_RESOLUTION 12
70#define DAC_MAX_COUNT LTC2672_12BIT_RESO
71#elif defined(DEV_LTC2672_16)
72#define ACTIVE_DEVICE_NAME "ltc2672-16"
73#define DEVICE_NAME "DEV_LTC2672_16"
74#define ACTIVE_DEVICE_ID LTC2672_16
75#define DAC_RESOLUTION 16
76#define DAC_MAX_COUNT LTC2672_16BIT_RESO
78#warning No/Unsupported ADxxxxy symbol defined. LTC2672_16 defined
80#define ACTIVE_DEVICE_NAME "ltc2672-16"
81#define DEVICE_NAME "DEV_LTC2672_16"
82#define ACTIVE_DEVICE_ID LTC2672_16
83#define DAC_RESOLUTION 16
84#define DAC_MAX_COUNT LTC2672_16BIT_RESO
87#define DAC_RESOLUTION 16
88#define DAC_MAX_COUNT LTC2672_16BIT_RESO
89#define DEVICE_LTC2662_16 "ltc2662-16"
90#define DEVICE_LTC2672_16 "ltc2672-16"
97#define DAC_FSADJ_RESISTOR 20
99#if (ACTIVE_PLATFORM == STM32_PLATFORM)
101#define CONSOLE_STDIO_PORT_AVAILABLE
103#error "No/Invalid active platform selected"
106#define HW_CARRIER_NAME TARGET_NAME
108#define HW_MEZZANINE_NAME "DC2903A-A"
113#define IIO_UART_BAUD_RATE (230400)
116#define FIRMWARE_NAME "ltc2672_iio"
118#if !defined(PLATFORM_NAME)
119#define PLATFORM_NAME HW_CARRIER_NAME
125#define VIRTUAL_COM_PORT_VID 0x0456
126#define VIRTUAL_COM_PORT_PID 0xb66c
128#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
131#if defined(USE_VIRTUAL_COM_PORT)
133#define CONSOLE_STDIO_PORT_AVAILABLE
137#define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
138#define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 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_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_pwm_desc * ldac_pwm_desc
Definition app_config.c:133
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
The file contain common macros that needs to be followed same across all the projects.
struct no_os_gpio_desc * gpio_clear_desc
Definition app_config.c:129
struct no_os_gpio_desc * gpio_toggle_desc
Definition app_config.c:132
struct no_os_gpio_init_param toggle_pwm_gpio_params
Definition app_config.c:79
struct no_os_gpio_desc * gpio_ldac_desc
Definition app_config.c:126
struct no_os_pwm_desc * toggle_pwm_desc
Definition app_config.c:135
Version macros for ADI LTC2672.
Header file for STM32 platform configurations.