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

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

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

Functions

int32_t init_pwm_trigger (void)
 Initialize the PWM trigger contoller. More...
 
int32_t init_system (void)
 Initialize the system peripherals. More...
 

Variables

struct no_os_gpio_init_param trigger_gpio_param
 
struct no_os_irq_init_param trigger_gpio_irq_params
 
struct no_os_gpio_desc * led_gpio_desc
 
struct no_os_uart_desc * uart_desc
 
struct no_os_gpio_desc * trigger_gpio_desc
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 
struct no_os_pwm_desc * pwm_desc
 
struct no_os_eeprom_desc * eeprom_desc
 

Detailed Description

Application configurations module (platform-agnostic)

This module performs the system configurations

Copyright (c) 2021-23 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_trigger()

int32_t init_pwm_trigger ( void  )

Initialize the PWM trigger contoller.

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

◆ led_gpio_desc

struct no_os_gpio_desc* led_gpio_desc

◆ pwm_desc

struct no_os_pwm_desc* pwm_desc

◆ trigger_gpio_desc

struct no_os_gpio_desc* trigger_gpio_desc

◆ trigger_gpio_irq_params

struct no_os_irq_init_param trigger_gpio_irq_params
Initial value:
= {
.irq_ctrl_id = 0,
.platform_ops = &trigger_gpio_irq_ops,
}
#define trigger_gpio_irq_extra_params
Definition: app_config.h:81
#define trigger_gpio_irq_ops
Definition: app_config.h:90

◆ trigger_gpio_param

struct no_os_gpio_init_param trigger_gpio_param
Initial value:
= {
.number = TRIGGER_GPIO_PIN,
.pull = NO_OS_PULL_NONE,
.platform_ops = &trigger_gpio_ops,
}
#define trigger_gpio_ops
Definition: app_config.h:83
#define TRIGGER_GPIO_PIN
Definition: app_config.h:94
#define TRIGGER_GPIO_PORT
Definition: app_config.h:93
#define trigger_gpio_extra_init_params
Definition: app_config.h:82

◆ trigger_irq_desc

struct no_os_irq_ctrl_desc* trigger_irq_desc

◆ uart_desc

struct no_os_uart_desc* uart_desc