precision-converters-firmware
|
Header file for application configurations (platform-agnostic) More...
Go to the source code of this file.
Functions | |
int32_t | init_system (void) |
Initialize the system peripherals. | |
int32_t | init_pwm_trigger (void) |
Initialize the PWM trigger contoller. | |
Variables | |
struct no_os_uart_desc * | uart_desc |
struct no_os_gpio_desc * | led_gpio_desc |
struct no_os_irq_ctrl_desc * | trigger_irq_desc |
Header file for application configurations (platform-agnostic)
Copyright (c) 2020-2023, 2025 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_AD7606B |
#define ACTIVE_DEVICE_NAME "ad7606b" |
#define ACTIVE_PLATFORM STM32_PLATFORM |
#define AD7606X_ADC_CHANNELS 8 |
#define AD7606X_ADC_RESOLUTION 16 |
#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (AD7606X_ADC_RESOLUTION-1)) |
#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << AD7606X_ADC_RESOLUTION) - 1) |
#define BURST_DATA_CAPTURE 0 |
#define busy_gpio_extra_init_params stm32_busy_gpio_extra_init_params |
#define BYTES_PER_SAMPLE sizeof(uint16_t) |
#define CONSOLE_STDIO_PORT_AVAILABLE |
#define CONTINUOUS_DATA_CAPTURE 1 |
#define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2) |
#define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) |
#define convst_gpio_extra_init_params stm32_convst_gpio_extra_init_params |
#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE |
#define DEV_AD7606B |
#define DEVICE_NAME "DEV_AD7606B" |
#define FIRMWARE_NAME "ad7606_iio" |
#define gpio_ops stm32_gpio_ops |
#define i2c_extra_init_params stm32_i2c_extra_init_params |
#define i2c_ops stm32_i2c_ops |
#define IIO_UART_BAUD_RATE (230400) |
#define irq_ops stm32_gpio_irq_ops |
#define osr0_gpio_extra_init_params stm32_osr0_gpio_extra_init_params |
#define osr1_gpio_extra_init_params stm32_osr1_gpio_extra_init_params |
#define osr2_gpio_extra_init_params stm32_osr2_gpio_extra_init_params |
#define pwm_extra_init_params stm32_pwm_extra_init_params |
#define pwm_gpio_extra_init_params stm32_pwm_gpio_extra_init_params |
#define pwm_ops stm32_pwm_ops |
#define range_gpio_extra_init_params stm32_range_gpio_extra_init_params |
#define reset_gpio_extra_init_params stm32_reset_gpio_extra_init_params |
#define spi_extra_init_params stm32_spi_extra_init_params |
#define spi_ops stm32_spi_ops |
#define stdby_gpio_extra_init_params stm32_stdby_gpio_extra_init_params |
#define STR | ( | s | ) | XSTR(s) |
#define trigger_gpio_extra_init_params stm32_trigger_gpio_extra_init_params |
#define trigger_gpio_handle 0 |
#define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params |
#define trigger_gpio_irq_ops stm32_gpio_irq_ops |
#define trigger_gpio_ops stm32_gpio_ops |
#define TRIGGER_GPIO_PIN IRQ_INT_ID |
#define TRIGGER_INT_ID IRQ_INT_ID |
#define uart_extra_init_params stm32_uart_extra_init_params |
#define uart_ops stm32_uart_ops |
#define USE_VIRTUAL_COM_PORT |
#define vcom_extra_init_params stm32_vcom_extra_init_params |
#define vcom_ops stm32_usb_uart_ops |
#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_pwm_trigger | ( | void | ) |
Initialize the PWM trigger contoller.
Initialize the PWM trigger contoller.
int32_t init_system | ( | void | ) |
Initialize the system peripherals.
Initialize the system peripherals.
This function initializes system peripherals for the application
|
extern |
|
extern |
|
extern |