28 #define MBED_PLATFORM 1
32 #define STR(s) XSTR(s)
37 #if !defined(ACTIVE_PLATFORM)
38 #define ACTIVE_PLATFORM MBED_PLATFORM
53 #if defined(DEV_CN0586)
54 #define ACTIVE_DEVICE_NAME "ad5754r"
55 #define DEVICE_NAME "DEV_CN0586"
56 #define HW_MEZZANINE_NAME "EVAL-CN0586-ARDZ"
58 #define ACTIVE_DEVICE_NAME "ad5754r"
59 #define DEVICE_NAME "DEV_AD5754R"
60 #define HW_MEZZANINE_NAME "EVAL-AD5754REBZ"
66 #if !defined(USE_PHY_COM_PORT)
67 #define USE_VIRTUAL_COM_PORT
71 #define AD5754R_VREF 2.5
74 #define DAC_MAX_COUNT_BIN_OFFSET (uint32_t)((1 << AD5754R_MAX_RESOLUTION) - 1)
77 #define DAC_MAX_COUNT_2S_COMPL (uint32_t)(1 << (AD5754R_MAX_RESOLUTION-1))
82 #if !defined(USE_TWOS_COMPLEMENT_CODING)
83 #define USE_BINARY_CODING
86 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
89 #define HW_CARRIER_NAME TARGET_NAME
92 #define pwm_extra_init_params mbed_pwm_extra_init_params
93 #define uart_extra_init_params mbed_uart_extra_init_params
94 #define vcom_extra_init_params mbed_vcom_extra_init_params
95 #define spi_extra_init_params mbed_spi_extra_init_params
96 #define i2c_extra_init_params mbed_i2c_extra_init_params
97 #define trigger_gpio_irq_extra_params mbed_trigger_gpio_irq_init_params
98 #define ldac_gpio_extra_init_params mbed_ldac_gpio_init_params
99 #define clear_gpio_extra_init_params mbed_clear_gpio_init_params
100 #define dac_gpio_ops mbed_gpio_ops
101 #define TRIGGER_INT_ID GPIO_IRQ_ID1
102 #define trigger_gpio_handle 0
104 #error "No/Invalid active platform selected"
110 #define IIO_UART_BAUD_RATE (230400)
113 #define FIRMWARE_NAME "ad5754r_iio"
115 #if !defined(PLATFORM_NAME)
116 #define PLATFORM_NAME HW_CARRIER_NAME
122 #define VIRTUAL_COM_PORT_VID 0x0456
123 #define VIRTUAL_COM_PORT_PID 0xb66c
125 #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
128 #if defined(USE_PHY_COM_PORT)
130 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
131 #define CONSOLE_STDIO_PORT_AVAILABLE
135 #define CONSOLE_STDIO_PORT_AVAILABLE
139 #define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
140 #define CONV_TRIGGER_DUTY_CYCLE_NSEC(x) ((CONV_TRIGGER_PERIOD_NSEC(x) * 9) / 10)
153 extern 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_uart_desc * uart_iio_com_desc
Definition: app_config.c:127
struct no_os_eeprom_desc * eeprom_desc
Definition: app_config.c:194
struct no_os_pwm_desc * pwm_desc
Definition: app_config.c:106
struct no_os_gpio_desc * trigger_gpio_desc
Definition: app_config.c:192
int32_t init_pwm(void)
Initialize the PWM interface.
Definition: app_config.c:283
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:111
struct no_os_gpio_init_param ldac_gpio_params
Definition: app_config.c:103
Header file for Mbed platform configurations.