no-OS
Loading...
Searching...
No Matches
common_data.h File Reference

Defines common data to be used by ADIN1320 examples. More...

#include "mdio_spi.h"
#include "no_os_gpio.h"
#include "no_os_irq.h"
#include "no_os_spi.h"
#include "no_os_uart.h"
#include "parameters.h"
Include dependency graph for common_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UART_DEV_ID   0
 
#define UART_IRQ_ID   UART0_IRQn
 
#define UART_BAUDRATE   115200
 
#define SPI_DEVICE_ID   0
 
#define SPI_CS   0
 
#define SPI_BAUDRATE   2500000
 
#define MDIO_OPS   &mdio_spi_ops
 
#define PORT_NUMBER   0
 
#define LED0_NUMBER   26
 
#define LED1_NUMBER   25
 
#define LED2_NUMBER   24
 
#define LED3_NUMBER   23
 
#define CFG0_NUMBER   27
 
#define CFG1_NUMBER   28
 
#define CFG2_NUMBER   29
 
#define CFG3_NUMBER   30
 
#define ADIN1320_0_PHY_ADDR   0
 
#define ADIN1320_0_RESET_BUTTON   11
 
#define ADIN1320_0_INT_N_PIN   19
 
#define ADIN1320_8_PHY_ADDR   8
 
#define ADIN1320_8_RESET_BUTTON   10
 
#define ADIN1320_8_INT_N_PIN   21
 
#define ADIN1320_INT_N_IRQn   GPIO0_IRQn
 

Variables

struct no_os_uart_init_param uart_ip
 
struct no_os_spi_init_param spi_ip
 
struct no_os_gpio_init_param gpio_uc_cfg0_ip
 
struct no_os_gpio_init_param gpio_uc_cfg1_ip
 
struct no_os_gpio_init_param gpio_uc_cfg2_ip
 
struct no_os_gpio_init_param gpio_uc_cfg3_ip
 
struct no_os_gpio_init_param gpio_led_green_ip
 
struct no_os_gpio_init_param gpio_led_red_ip
 
struct no_os_gpio_init_param gpio_led_yellow_ip
 
struct no_os_gpio_init_param gpio_led_blue_ip
 
struct no_os_gpio_init_param gpio_adin1320_0_reset_ip
 
struct no_os_gpio_init_param gpio_adin1320_8_reset_ip
 
struct no_os_gpio_init_param gpio_adin1320_0_int_n_ip
 
struct no_os_gpio_init_param gpio_adin1320_8_int_n_ip
 
struct no_os_irq_init_param irq_nvic_ip
 
struct no_os_irq_init_param irq_int_n_ip
 

Detailed Description

Defines common data to be used by ADIN1320 examples.

Author
John Roed Retuya (Johnr.nosp@m.oed..nosp@m.Retuy.nosp@m.a@an.nosp@m.alog..nosp@m.com)

Copyright 2026(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.

Macro Definition Documentation

◆ ADIN1320_0_INT_N_PIN

#define ADIN1320_0_INT_N_PIN   19

◆ ADIN1320_0_PHY_ADDR

#define ADIN1320_0_PHY_ADDR   0

◆ ADIN1320_0_RESET_BUTTON

#define ADIN1320_0_RESET_BUTTON   11

◆ ADIN1320_8_INT_N_PIN

#define ADIN1320_8_INT_N_PIN   21

◆ ADIN1320_8_PHY_ADDR

#define ADIN1320_8_PHY_ADDR   8

◆ ADIN1320_8_RESET_BUTTON

#define ADIN1320_8_RESET_BUTTON   10

◆ ADIN1320_INT_N_IRQn

#define ADIN1320_INT_N_IRQn   GPIO0_IRQn

◆ CFG0_NUMBER

#define CFG0_NUMBER   27

◆ CFG1_NUMBER

#define CFG1_NUMBER   28

◆ CFG2_NUMBER

#define CFG2_NUMBER   29

◆ CFG3_NUMBER

#define CFG3_NUMBER   30

◆ LED0_NUMBER

#define LED0_NUMBER   26

◆ LED1_NUMBER

#define LED1_NUMBER   25

◆ LED2_NUMBER

#define LED2_NUMBER   24

◆ LED3_NUMBER

#define LED3_NUMBER   23

◆ MDIO_OPS

#define MDIO_OPS   &mdio_spi_ops

◆ PORT_NUMBER

#define PORT_NUMBER   0

◆ SPI_BAUDRATE

#define SPI_BAUDRATE   2500000

◆ SPI_CS

#define SPI_CS   0

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   0

◆ UART_BAUDRATE

#define UART_BAUDRATE   115200

◆ UART_DEV_ID

#define UART_DEV_ID   0

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART0_IRQn

Variable Documentation

◆ gpio_adin1320_0_int_n_ip

struct no_os_gpio_init_param gpio_adin1320_0_int_n_ip
extern

◆ gpio_adin1320_0_reset_ip

struct no_os_gpio_init_param gpio_adin1320_0_reset_ip
extern

◆ gpio_adin1320_8_int_n_ip

struct no_os_gpio_init_param gpio_adin1320_8_int_n_ip
extern

◆ gpio_adin1320_8_reset_ip

struct no_os_gpio_init_param gpio_adin1320_8_reset_ip
extern

◆ gpio_led_blue_ip

struct no_os_gpio_init_param gpio_led_blue_ip
extern

◆ gpio_led_green_ip

struct no_os_gpio_init_param gpio_led_green_ip
extern

◆ gpio_led_red_ip

struct no_os_gpio_init_param gpio_led_red_ip
extern

◆ gpio_led_yellow_ip

struct no_os_gpio_init_param gpio_led_yellow_ip
extern

◆ gpio_uc_cfg0_ip

struct no_os_gpio_init_param gpio_uc_cfg0_ip
extern

◆ gpio_uc_cfg1_ip

struct no_os_gpio_init_param gpio_uc_cfg1_ip
extern

◆ gpio_uc_cfg2_ip

struct no_os_gpio_init_param gpio_uc_cfg2_ip
extern

◆ gpio_uc_cfg3_ip

struct no_os_gpio_init_param gpio_uc_cfg3_ip
extern

◆ irq_int_n_ip

struct no_os_irq_init_param irq_int_n_ip
extern

◆ irq_nvic_ip

struct no_os_irq_init_param irq_nvic_ip
extern

◆ spi_ip

struct no_os_spi_init_param spi_ip
extern

◆ uart_ip

struct no_os_uart_init_param uart_ip
extern