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

Application configurations module. More...

#include <stdbool.h>
#include "app_config.h"
#include "common.h"
#include "no_os_error.h"
#include "no_os_uart.h"
#include "no_os_irq.h"
#include "no_os_gpio.h"
#include "no_os_pwm.h"
#include "no_os_tdm.h"
Include dependency graph for app_config.c:

Functions

int32_t init_pwm (void)
 Initialize the PWM 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_gpio_init_param pdn_init_param
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_irq_ctrl_desc * external_int_desc
 
struct no_os_pwm_desc * pwm_desc
 
struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 

Detailed Description

Application configurations module.

This module contains the configurations needed for AD7134 IIO application

Copyright (c) 2021, 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.

Function Documentation

◆ init_pwm()

int32_t init_pwm ( void  )

Initialize the PWM contoller.

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

Variable Documentation

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc

◆ external_int_desc

struct no_os_irq_ctrl_desc* external_int_desc

◆ pdn_init_param

struct no_os_gpio_init_param pdn_init_param
Initial value:
= {
.number = PDN_PIN,
.port = PDN_PORT,
.platform_ops = &gpio_ops
}
#define gpio_ops
Definition: app_config.h:85
#define gpio_pdn_extra_init_params
Definition: app_config.h:132
#define PDN_PORT
Definition: app_config_mbed.h:53
#define PDN_PIN
Definition: app_config_mbed.h:50

◆ pwm_desc

struct no_os_pwm_desc* pwm_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 = UART_DEVICE_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_DEVICE_ID
Definition: app_config_mbed.h:83

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