no-OS
Loading...
Searching...
No Matches
common_data.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef __COMMON_DATA_H__
35#define __COMMON_DATA_H__
36
37#include "mdio_spi.h"
38#include "no_os_gpio.h"
39#include "no_os_irq.h"
40#include "no_os_spi.h"
41#include "no_os_uart.h"
42#include "parameters.h"
43
44/* UART config */
45
46#define UART_DEV_ID 0
47#define UART_IRQ_ID UART0_IRQn
48#define UART_BAUDRATE 115200
49
50/* SPI Configuration */
51
52#define SPI_DEVICE_ID 0
53#define SPI_CS 0
54#define SPI_BAUDRATE 2500000
55
56/* MDIO Configuration */
57
58#define MDIO_OPS &mdio_spi_ops
59
60/* GPIO Pins configuration */
61
62#define PORT_NUMBER 0
63
64/* LED0 (P0.26) = Blue, LED1 (P0.25) = Yellow,
65 * LED2 (P0.24) = Red, LED3 (P0.23) = Green */
66#define LED0_NUMBER 26
67#define LED1_NUMBER 25
68#define LED2_NUMBER 24
69#define LED3_NUMBER 23
70
71#define CFG0_NUMBER 27
72#define CFG1_NUMBER 28
73#define CFG2_NUMBER 29
74#define CFG3_NUMBER 30
75
76/* ADIN1320 PHY Address 0 device */
77#define ADIN1320_0_PHY_ADDR 0
78#define ADIN1320_0_RESET_BUTTON 11
79#define ADIN1320_0_INT_N_PIN 19
80
81/* ADIN1320 PHY Address 8 device */
82#define ADIN1320_8_PHY_ADDR 8
83#define ADIN1320_8_RESET_BUTTON 10
84#define ADIN1320_8_INT_N_PIN 21
85
86#define ADIN1320_INT_N_IRQn GPIO0_IRQn
87
88extern struct no_os_uart_init_param uart_ip;
89extern struct no_os_spi_init_param spi_ip;
104
105#endif /* __COMMON_DATA_H__ */
const struct no_os_spi_init_param spi_ip
Definition ad5758_sdz.c:56
struct no_os_uart_init_param uart_ip
Definition common_data.c:55
struct no_os_gpio_init_param gpio_adin1320_0_reset_ip
Definition common_data.c:122
struct no_os_gpio_init_param gpio_uc_cfg3_ip
Definition common_data.c:82
struct no_os_gpio_init_param gpio_uc_cfg0_ip
Definition common_data.c:58
struct no_os_gpio_init_param gpio_adin1320_0_int_n_ip
Definition common_data.c:138
struct no_os_gpio_init_param gpio_led_blue_ip
Definition common_data.c:114
struct no_os_gpio_init_param gpio_uc_cfg1_ip
Definition common_data.c:66
struct no_os_gpio_init_param gpio_adin1320_8_int_n_ip
Definition common_data.c:146
struct no_os_gpio_init_param gpio_led_green_ip
Definition common_data.c:90
struct no_os_gpio_init_param gpio_adin1320_8_reset_ip
Definition common_data.c:130
struct no_os_gpio_init_param gpio_led_red_ip
Definition common_data.c:98
struct no_os_gpio_init_param gpio_led_yellow_ip
Definition common_data.c:106
struct no_os_irq_init_param irq_nvic_ip
Definition common_data.c:154
struct no_os_irq_init_param irq_int_n_ip
Definition common_data.c:158
struct no_os_gpio_init_param gpio_uc_cfg2_ip
Definition common_data.c:74
Header file for MDIO implementation.
Header file of GPIO Interface.
Header file of IRQ interface.
Header file of SPI Interface.
Header file of UART interface.
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98