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

Source file for the application configuration for AD7124 IIO Application. More...

#include "app_config.h"
#include "no_os_uart.h"
#include "no_os_error.h"
#include "no_os_eeprom.h"
#include "common.h"
#include "no_os_irq.h"
#include "no_os_gpio.h"
Include dependency graph for app_config.c:

Macros

#define EEPROM_OPS_START_DELAY   0xfffff
 

Functions

int init_interrupt (void)
 Initialize the IRQ contoller. More...
 
int init_system (void)
 Initialize the system peripherals. More...
 

Variables

struct no_os_uart_desc * uart_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_gpio_desc * csb_gpio
 
struct no_os_gpio_desc * rdy_gpio
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 
struct no_os_uart_init_param uart_init_params
 
struct no_os_uart_init_param uart_console_stdio_init_params
 
struct no_os_irq_ctrl_desc * ticker_int_desc
 

Detailed Description

Source file for the application configuration for AD7124 IIO Application.

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

Macro Definition Documentation

◆ EEPROM_OPS_START_DELAY

#define EEPROM_OPS_START_DELAY   0xfffff

Function Documentation

◆ init_interrupt()

int init_interrupt ( void  )

Initialize the IRQ contoller.

Returns
0 in case of success, negative error code otherwise

This function initialize the interrupts for system peripherals

◆ init_system()

int init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

Variable Documentation

◆ csb_gpio

struct no_os_gpio_desc* csb_gpio

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ rdy_gpio

struct no_os_gpio_desc* rdy_gpio

◆ ticker_int_desc

struct no_os_irq_ctrl_desc* ticker_int_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,
.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_desc

struct no_os_uart_desc* uart_desc

◆ uart_init_params

struct no_os_uart_init_param uart_init_params
Initial value:
= {
.device_id = 0,
.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