precision-converters-firmware
Loading...
Searching...
No Matches
Functions | Variables
app_config.c File Reference

Application configurations module (platform-agnostic) More...

#include "app_config.h"
#include "ltc2672_user_config.h"
#include "no_os_util.h"
#include "common.h"
#include "no_os_error.h"
#include "no_os_uart.h"
Include dependency graph for app_config.c:

Functions

int32_t init_pwm (void)
 Initialize the PWM interface.
 
int32_t init_system (void)
 Initialize the system peripherals.
 

Variables

struct no_os_uart_init_param uart_iio_comm_init_params
 
struct no_os_uart_init_param uart_console_stdio_init_params
 
struct no_os_gpio_init_param toggle_pwm_gpio_params
 
struct no_os_pwm_init_param toggle_pwm_init_params
 
struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_gpio_desc * gpio_ldac_desc
 
struct no_os_gpio_desc * gpio_clear_desc
 
struct no_os_gpio_desc * gpio_toggle_desc
 
struct no_os_pwm_desc * toggle_pwm_desc
 
struct no_os_pwm_desc * ldac_pwm_desc
 

Detailed Description

Application configurations module (platform-agnostic)

This module performs the system configurations

Copyright (c) 2023-25 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.

Function Documentation

◆ init_pwm()

int32_t init_pwm ( void  )

Initialize the PWM interface.

Returns
0 in case of success, negative error code otherwise.

◆ init_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

Variable Documentation

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ gpio_clear_desc

struct no_os_gpio_desc* gpio_clear_desc

◆ gpio_ldac_desc

struct no_os_gpio_desc* gpio_ldac_desc

◆ gpio_toggle_desc

struct no_os_gpio_desc* gpio_toggle_desc

◆ ldac_pwm_desc

struct no_os_pwm_desc* ldac_pwm_desc

◆ toggle_pwm_desc

struct no_os_pwm_desc* toggle_pwm_desc

◆ toggle_pwm_gpio_params

struct no_os_gpio_init_param toggle_pwm_gpio_params
Initial value:
= {
.port = GPIO_TGP_PORT,
.number = GPIO_TGP_PIN,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition app_config.h:85
#define GPIO_TGP_PIN
Definition app_config_stm32.h:58
#define GPIO_TGP_PORT
Definition app_config_stm32.h:59
#define toggle_pwm_gpio_extra_params
Definition app_config_stm32.h:82

◆ toggle_pwm_init_params

struct no_os_pwm_init_param toggle_pwm_init_params
Initial value:
= {
.polarity = NO_OS_PWM_POLARITY_LOW,
.platform_ops = &pwm_ops,
}
#define pwm_ops
Definition app_config.h:89
struct no_os_gpio_init_param toggle_pwm_gpio_params
Definition app_config.c:79
#define TOGGLE_PWM_ID
Definition app_config_stm32.h:64
#define LTC2672_MAX_TOGGLE_RATE
Definition app_config_stm32.h:94
#define FREQ_TO_NSEC(x)
Definition app_config_stm32.h:96
#define toggle_pwm_extra_init_params
Definition app_config_stm32.h:81
#define DUTY_CYCLE_NSEC(x)
Definition app_config_stm32.h:97

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc

◆ uart_console_stdio_init_params

struct no_os_uart_init_param uart_console_stdio_init_params
Initial value:
= {
.device_id = UART_ID,
.asynchronous_rx = false,
.baud_rate = IIO_UART_BAUD_RATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.stop = NO_OS_UART_STOP_1_BIT,
.platform_ops = &uart_ops,
}
#define uart_extra_init_params
Definition app_config.h:78
#define IIO_UART_BAUD_RATE
Definition app_config.h:164
#define uart_ops
Definition app_config.h:87
#define UART_ID
Definition app_config_stm32.h:77

◆ uart_iio_com_desc

struct no_os_uart_desc* uart_iio_com_desc

◆ uart_iio_comm_init_params

struct no_os_uart_init_param uart_iio_comm_init_params
Initial value:
= {
.device_id = UART_ID,
.baud_rate = IIO_UART_BAUD_RATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.stop = NO_OS_UART_STOP_1_BIT,
.asynchronous_rx = true,
.irq_id = UART_IRQ_ID,
.platform_ops = &vcom_ops,
}
#define vcom_extra_init_params
Definition app_config.h:79
#define vcom_ops
Definition app_config.h:88
#define UART_IRQ_ID
Definition app_config_stm32.h:43