precision-converters-firmware
Functions | Variables
app_config.c File Reference

Application configurations module. More...

#include <stdint.h>
#include <stdbool.h>
#include "app_config.h"
#include "ad355xr_user_config.h"
Include dependency graph for app_config.c:

Functions

int32_t init_ldac_pwm_trigger (void)
 Initialize the PWM trigger contoller for ldac. More...
 
int32_t init_spi_dma_tx_stop_pwm (void)
 Initialize the timer in pwm mode which used to stops spi dma transfer. More...
 
void ldac_pos_edge_detect_callback (void *ctx)
 Interrupt Service Routine to monitor ldac positive edge. More...
 
int32_t init_interrupt (void)
 Initialize the IRQ contoller. More...
 
int32_t init_system (void)
 Initialize the system peripherals. More...
 

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_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_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
 

Detailed Description

Application configurations module.

This module contains the configurations needed for IIO 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.

Function Documentation

◆ init_interrupt()

int32_t init_interrupt ( void  )

Initialize the IRQ contoller.

Returns
0 in case of success, negative error code otherwise

◆ init_ldac_pwm_trigger()

int32_t init_ldac_pwm_trigger ( void  )

Initialize the PWM trigger contoller for ldac.

Returns
0 in case of success, negative error code otherwise

◆ init_spi_dma_tx_stop_pwm()

int32_t init_spi_dma_tx_stop_pwm ( void  )

Initialize the timer in pwm mode which used to stops spi dma transfer.

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

◆ init_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

◆ ldac_pos_edge_detect_callback()

void ldac_pos_edge_detect_callback ( void *  ctx)

Interrupt Service Routine to monitor ldac positive edge.

Parameters
ctx[in]- Callback context (unused)
Returns
None
Note
this function is unused. we are handling ldac interrupt directly from EXTI IRQHandler.

Variable Documentation

◆ ldac_pwm_desc

struct no_os_pwm_desc* ldac_pwm_desc

◆ spi_dma_tx_stop_pwm_desc

struct no_os_pwm_desc* spi_dma_tx_stop_pwm_desc

◆ trigger_irq_desc

struct no_os_irq_ctrl_desc* trigger_irq_desc

◆ 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 = 0,
.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

◆ 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 = 0,
.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 = &vcom_ops,
}
#define vcom_extra_init_params
Definition: app_config.h:79
#define vcom_ops
Definition: app_config.h:88