no-OS
Variables
common_data.c File Reference

Defines common data to be used by the SWIOT1L firmware. More...

#include "common_data.h"
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param uart_ip
 
const struct no_os_spi_init_param adin1110_spi_ip
 
const struct no_os_i2c_init_param adt75_comm_param
 
struct adt75_init_param adt75_ip
 
const struct no_os_gpio_init_param adin1110_int_ip
 
const struct no_os_gpio_init_param adin1110_rst_gpio_ip
 
const struct no_os_gpio_init_param tx_perf_gpio_ip
 
struct no_os_gpio_init_param ad74413r_reset_ip
 
const struct no_os_gpio_init_param ad74413r_ldac_ip
 
const struct no_os_gpio_init_param ad74413r_irq_ip
 
const struct no_os_gpio_init_param max14906_en_ip
 
const struct no_os_gpio_init_param max14906_d1_ip
 
const struct no_os_gpio_init_param max14906_d2_ip
 
const struct no_os_gpio_init_param max14906_d3_ip
 
const struct no_os_gpio_init_param max14906_d4_ip
 
const struct no_os_gpio_init_param max14906_synch_ip
 
const struct no_os_gpio_init_param adin1110_swpd_ip
 
const struct no_os_gpio_init_param adin1110_tx2p4_ip
 
const struct no_os_gpio_init_param adin1110_mssel_ip
 
const struct no_os_gpio_init_param adin1110_cfg0_ip
 
const struct no_os_gpio_init_param adin1110_cfg1_ip
 
const struct no_os_gpio_init_param swiot_led1_ip
 
const struct no_os_gpio_init_param swiot_led2_ip
 
struct adin1110_init_param adin1110_ip
 
const struct no_os_platform_spi_delays ad74413r_spi_delays
 
const struct no_os_spi_init_param ad74413r_spi_ip
 
struct no_os_spi_init_param max14906_spi_ip
 
const struct no_os_spi_init_param pmod_spi_ip
 
const struct no_os_gpio_init_param psu_gpio_ip
 
struct max149x6_init_param max14906_ip
 
const struct no_os_irq_init_param ad74413r_nvic_ip
 
struct ad74413r_init_param ad74413r_ip
 

Detailed Description

Defines common data to be used by the SWIOT1L firmware.

Author
Ciprian Regus (cipri.nosp@m.an.r.nosp@m.egus@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2023(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Variable Documentation

◆ ad74413r_ip

struct ad74413r_init_param ad74413r_ip
Initial value:
= {
.chip_id = AD74413R,
.comm_param = ad74413r_spi_ip,
}

◆ ad74413r_irq_ip

const struct no_os_gpio_init_param ad74413r_irq_ip
Initial value:
= {
.port = 1,
.number = 22,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ ad74413r_ldac_ip

const struct no_os_gpio_init_param ad74413r_ldac_ip
Initial value:
= {
.port = 0,
.number = 27,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ ad74413r_nvic_ip

const struct no_os_irq_init_param ad74413r_nvic_ip
Initial value:
= {
.irq_ctrl_id = 0,
.platform_ops = &max_irq_ops,
.extra = NULL,
}

◆ ad74413r_reset_ip

struct no_os_gpio_init_param ad74413r_reset_ip
Initial value:
= {
.port = 0,
.number = 26,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ ad74413r_spi_delays

const struct no_os_platform_spi_delays ad74413r_spi_delays
Initial value:
= {
.cs_delay_first = 1000,
.cs_delay_last = 0,
}

◆ ad74413r_spi_ip

const struct no_os_spi_init_param ad74413r_spi_ip
Initial value:
= {
.device_id = 3,
.max_speed_hz = 1000000,
.platform_ops = &max_spi_ops,
.chip_select = 3,
.platform_delays = ad74413r_spi_delays,
.extra = SPI_EXTRA,
}

◆ adin1110_cfg0_ip

const struct no_os_gpio_init_param adin1110_cfg0_ip
Initial value:
= {
.port = 2,
.number = 3,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_cfg1_ip

const struct no_os_gpio_init_param adin1110_cfg1_ip
Initial value:
= {
.port = 2,
.number = 0,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_int_ip

const struct no_os_gpio_init_param adin1110_int_ip
Initial value:
= {
.port = 2,
.number = 6,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_ip

struct adin1110_init_param adin1110_ip
Initial value:
= {
.chip_type = ADIN1110,
.comm_param = adin1110_spi_ip,
.reset_param = adin1110_rst_gpio_ip,
.append_crc = false,
}

◆ adin1110_mssel_ip

const struct no_os_gpio_init_param adin1110_mssel_ip
Initial value:
= {
.port = 2,
.number = 9,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_rst_gpio_ip

const struct no_os_gpio_init_param adin1110_rst_gpio_ip
Initial value:
= {
.port = 2,
.number = 1,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_spi_ip

const struct no_os_spi_init_param adin1110_spi_ip
Initial value:
= {
.device_id = 2,
.max_speed_hz = 15000000,
.platform_ops = &max_spi_ops,
.chip_select = 0,
.extra = SPI_EXTRA,
}

◆ adin1110_swpd_ip

const struct no_os_gpio_init_param adin1110_swpd_ip
Initial value:
= {
.port = 2,
.number = 25,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adin1110_tx2p4_ip

const struct no_os_gpio_init_param adin1110_tx2p4_ip
Initial value:
= {
.port = 2,
.number = 10,
.pull = NO_OS_PULL_DOWN,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ adt75_comm_param

const struct no_os_i2c_init_param adt75_comm_param
Initial value:
= {
.device_id = 1,
.max_speed_hz = 400000,
.slave_address = ADT75_ADDR(0),
.platform_ops = &max_i2c_ops,
.extra = I2C_EXTRA,
}

◆ adt75_ip

struct adt75_init_param adt75_ip
Initial value:
= {
.comm_param = adt75_comm_param,
}

◆ max14906_d1_ip

const struct no_os_gpio_init_param max14906_d1_ip
Initial value:
= {
.port = 3,
.number = 7,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ max14906_d2_ip

const struct no_os_gpio_init_param max14906_d2_ip
Initial value:
= {
.port = 3,
.number = 4,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ max14906_d3_ip

const struct no_os_gpio_init_param max14906_d3_ip
Initial value:
= {
.port = 3,
.number = 8,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ max14906_d4_ip

const struct no_os_gpio_init_param max14906_d4_ip
Initial value:
= {
.port = 3,
.number = 5,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ max14906_en_ip

const struct no_os_gpio_init_param max14906_en_ip
Initial value:
= {
.port = 1,
.number = 25,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ max14906_ip

struct max149x6_init_param max14906_ip
Initial value:
= {
.chip_address = 0,
.comm_param = &max14906_spi_ip,
.crc_en = true,
}

◆ max14906_spi_ip

struct no_os_spi_init_param max14906_spi_ip
Initial value:
= {
.device_id = 1,
.max_speed_hz = 10000000,
.platform_ops = &max_spi_ops,
.chip_select = 3,
.extra = SPI_EXTRA,
}

◆ max14906_synch_ip

const struct no_os_gpio_init_param max14906_synch_ip
Initial value:
= {
.port = 3,
.number = 6,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ pmod_spi_ip

const struct no_os_spi_init_param pmod_spi_ip
Initial value:
= {
.device_id = 1,
.max_speed_hz = 10000000,
.platform_ops = &max_spi_ops,
.chip_select = 2,
.extra = SPI_EXTRA,
}

◆ psu_gpio_ip

const struct no_os_gpio_init_param psu_gpio_ip
Initial value:
= {
.port = 3,
.number = 9,
.platform_ops = &max_gpio_ops,
.pull = NO_OS_PULL_UP,
.extra = GPIO_EXTRA
}

◆ swiot_led1_ip

const struct no_os_gpio_init_param swiot_led1_ip
Initial value:
= {
.port = 2,
.number = 15,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ swiot_led2_ip

const struct no_os_gpio_init_param swiot_led2_ip
Initial value:
= {
.port = 2,
.number = 14,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ tx_perf_gpio_ip

const struct no_os_gpio_init_param tx_perf_gpio_ip
Initial value:
= {
.port = 2,
.number = 16,
.pull = NO_OS_PULL_UP,
.platform_ops = &max_gpio_ops,
.extra = GPIO_EXTRA,
}

◆ uart_ip

struct no_os_uart_init_param uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.irq_id = UART_IRQ_ID,
.asynchronous_rx = true,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.platform_ops = &max_uart_ops,
.extra = UART_EXTRA,
}
NO_OS_PULL_DOWN
@ NO_OS_PULL_DOWN
Definition: no_os_gpio.h:70
max_i2c_ops
const struct no_os_i2c_platform_ops max_i2c_ops
MAXIM platform specific I2C platform ops structure.
Definition: maxim_i2c.c:322
ad74413r_spi_delays
const struct no_os_platform_spi_delays ad74413r_spi_delays
Definition: common_data.c:228
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
UART_EXTRA
#define UART_EXTRA
Definition: parameters.h:54
NO_OS_SPI_MODE_2
@ NO_OS_SPI_MODE_2
Definition: no_os_spi.h:65
NO_OS_PULL_NONE
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:66
SPI_EXTRA
#define SPI_EXTRA
Definition: parameters.h:75
adin1110_spi_ip
struct no_os_spi_init_param adin1110_spi_ip
Definition: common_data.c:46
ADIN1110
@ ADIN1110
Definition: adin1110.h:192
adin1110_rst_gpio_ip
const struct no_os_gpio_init_param adin1110_rst_gpio_ip
Definition: common_data.c:77
max_irq_ops
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:657
UART_IRQ_ID
#define UART_IRQ_ID
Definition: parameters.h:50
ADT75_ADDR
#define ADT75_ADDR(x)
Definition: adt75.h:40
AD74413R
@ AD74413R
Definition: ad74413r.h:175
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:53
max_spi_ops
const struct no_os_spi_platform_ops max_spi_ops
maxim platform specific SPI platform ops structure
Definition: maxim_spi.c:795
adt75_comm_param
const struct no_os_i2c_init_param adt75_comm_param
Definition: common_data.c:57
max_gpio_ops
const struct no_os_gpio_platform_ops max_gpio_ops
maxim platform specific GPIO platform ops structure
Definition: maxim_gpio.c:320
max14906_spi_ip
struct no_os_spi_init_param max14906_spi_ip
Definition: common_data.c:47
max_uart_ops
const struct no_os_uart_platform_ops max_uart_ops
Maxim platform specific UART platform ops structure.
Definition: maxim_uart.c:475
NO_OS_SPI_BIT_ORDER_MSB_FIRST
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition: no_os_spi.h:76
NULL
#define NULL
Definition: wrapper.h:64
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
NO_OS_PULL_UP
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:68
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:52
I2C_EXTRA
#define I2C_EXTRA
Definition: parameters.h:59
ad74413r_spi_ip
struct no_os_spi_init_param ad74413r_spi_ip
Definition: common_data.c:54
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:79