precision-converters-firmware
|
Configuration file for AD355xr device application. More...
#include <stdint.h>
#include "common.h"
#include "no_os_uart.h"
#include "no_os_pwm.h"
#include "no_os_irq.h"
#include "no_os_gpio.h"
#include "app_config_mbed.h"
Go to the source code of this file.
Macros | |
#define | MBED_PLATFORM 0 |
#define | STM32_PLATFORM 1 |
#define | SPI_DMA 0 |
#define | SPI_INTERRUPT 1 |
#define | XSTR(s) #s |
#define | STR(s) XSTR(s) |
#define | DEV_AD3552R |
#define | ACTIVE_DEVICE_NAME "ad3552r" |
#define | DEVICE_NAME "DEV_AD3552R" |
#define | ACTIVE_DEVICE_ID AD3552R_ID |
#define | NUMBER_OF_CHANNELS 2U |
#define | ACTIVE_PLATFORM MBED_PLATFORM |
#define | USE_VIRTUAL_COM_PORT |
#define | INTERFACE_MODE SPI_INTERRUPT |
#define | DAC_RESOLUTION 16 |
#define | HW_CARRIER_NAME TARGET_NAME |
#define | IIO_UART_BAUD_RATE (230400) |
#define | FIRMWARE_NAME "ad355xr_iio" |
#define | PLATFORM_NAME HW_CARRIER_NAME |
#define | VIRTUAL_COM_PORT_VID 0x0456 |
#define | VIRTUAL_COM_PORT_PID 0xb66c |
#define | VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME)) |
#define | CONSOLE_STDIO_PORT_AVAILABLE |
#define | CONV_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000) |
#define | CONV_FREQUENCY_HZ(x) (((float)(1.0 / x) * 1000000) * 1000) |
#define | CONV_DUTY_CYCLE_NSEC(x, y) (((float)y / 100) * CONV_PERIOD_NSEC(x)) |
Functions | |
int32_t | init_system (void) |
Initialize the system peripherals. More... | |
int32_t | init_ldac_pwm_trigger (void) |
Initialize the PWM trigger contoller for ldac. More... | |
void | ldac_pos_edge_detect_callback (void *ctx) |
Interrupt Service Routine to monitor ldac positive edge. More... | |
Variables | |
struct no_os_uart_desc * | uart_iio_com_desc |
struct no_os_pwm_desc * | ldac_pwm_desc |
struct no_os_pwm_desc * | spi_dma_tx_stop_pwm_desc |
struct no_os_irq_ctrl_desc * | trigger_irq_desc |
Configuration file for AD355xr device application.
Copyright (c) 2023-2024 Analog Devices, Inc. All rights reserved.
This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.
#define ACTIVE_DEVICE_ID AD3552R_ID |
#define ACTIVE_DEVICE_NAME "ad3552r" |
#define ACTIVE_PLATFORM MBED_PLATFORM |
#define CONSOLE_STDIO_PORT_AVAILABLE |
#define CONV_DUTY_CYCLE_NSEC | ( | x, | |
y | |||
) | (((float)y / 100) * CONV_PERIOD_NSEC(x)) |
#define CONV_FREQUENCY_HZ | ( | x | ) | (((float)(1.0 / x) * 1000000) * 1000) |
#define CONV_PERIOD_NSEC | ( | x | ) | (((float)(1.0 / x) * 1000000) * 1000) |
#define DAC_RESOLUTION 16 |
#define DEV_AD3552R |
#define DEVICE_NAME "DEV_AD3552R" |
#define FIRMWARE_NAME "ad355xr_iio" |
#define HW_CARRIER_NAME TARGET_NAME |
#define IIO_UART_BAUD_RATE (230400) |
#define INTERFACE_MODE SPI_INTERRUPT |
#define MBED_PLATFORM 0 |
#define NUMBER_OF_CHANNELS 2U |
#define PLATFORM_NAME HW_CARRIER_NAME |
#define SPI_DMA 0 |
#define SPI_INTERRUPT 1 |
#define STM32_PLATFORM 1 |
#define STR | ( | s | ) | XSTR(s) |
#define USE_VIRTUAL_COM_PORT |
#define VIRTUAL_COM_PORT_PID 0xb66c |
#define VIRTUAL_COM_PORT_VID 0x0456 |
#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME)) |
#define XSTR | ( | s | ) | #s |
int32_t init_ldac_pwm_trigger | ( | void | ) |
Initialize the PWM trigger contoller for ldac.
int32_t init_system | ( | void | ) |
Initialize the system peripherals.
Initialize the system peripherals.
This function initializes system peripherals for the application
void ldac_pos_edge_detect_callback | ( | void * | ctx | ) |
Interrupt Service Routine to monitor ldac positive edge.
ctx[in] | - Callback context (unused) |
|
extern |
|
extern |
|
extern |
|
extern |