no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1#ifndef __PARAMETERS_H__
2#define __PARAMETERS_H__
3
4#include "no_os_uart.h"
5#include "no_os_gpio.h"
6#include "no_os_i2c.h"
7#include "no_os_eeprom.h"
8#include "maxim_irq.h"
9#include "maxim_gpio.h"
10#include "maxim_uart.h"
11#include "maxim_uart_stdio.h"
12#include "maxim_i2c.h"
13#include "24xx32a.h"
14
15#ifndef HW_VERSION
16// 0 is for Revision A, 1 is for Revision B etc.
17// Use the highest available revision as default.
18#define HW_VERSION 1
19#endif
20
21#define UART_DEVICE_ID 0
22#define UART_BAUDRATE 345600
23#define UART_STOPBITS NO_OS_UART_STOP_1_BIT
24#define UART_IRQ_ID UART0_IRQn
25#define INTC_DEVICE_ID 0
26
27#define XCVR_RESET_PORT 2
28#define XCVR_RESET_PIN 0
29
30#define XCVR_EN_PORT 2
31#define XCVR_EN_PIN 1
32
33#define XCVR_CLK_PORT 2
34#define XCVR_CLK_PIN 3
35
36#define XCVR_DATA_PORT 2
37#define XCVR_DATA_PIN 2
38
39#define XCVR_SCANOUT_TX_PORT 2
40#define XCVR_SCANOUT_TX_PIN 4
41
42#define XCVR_SCANOUT_RX_PORT 2
43#define XCVR_SCANOUT_RX_PIN 5
44
45#define ADIN1300_RESET_PORT 1
46#define ADIN1300_RESET_PIN 23
47
48#define MAX24287_RESET_PORT 1
49#define MAX24287_RESET_PIN 24
50
51#define ADIN1300_MDIO_PORT 1
52#define ADIN1300_MDIO_PIN 4
53
54#define ADIN1300_MDC_PORT 1
55#define ADIN1300_MDC_PIN 5
56
57#define ADIN1300_INT_PORT 2
58#define ADIN1300_INT_PIN 16
59#define ADIN1300_INT_IRQn GPIO2_IRQn
60
61#define MAX24287_MDIO_PORT 1
62#define MAX24287_MDIO_PIN 6
63
64#define MAX24287_MDC_PORT 1
65#define MAX24287_MDC_PIN 7
66
67#define MAX24287_INT_PORT 1
68#define MAX24287_INT_PIN 0
69#define MAX24287_INT_IRQn GPIO1_IRQn
70
71#define BRD_SELECT_PORT 0
72#define BRD_SELECT_PIN 20
73
74#define FACTORY_DEFAULTS_PORT 3
75#define FACTORY_DEFAULTS_PIN 9
76
77#define LED_TX_DET_RED_PORT 0
78#define LED_TX_DET_RED_PIN 4
79#define LED_TX_DET_GREEN_PORT 0
80#define LED_TX_DET_GREEN_PIN 5
81#define LED_TX_LOCK_PORT 0
82#define LED_TX_LOCK_PIN 6
83#define LED_RX_LOCK_PORT 0
84#define LED_RX_LOCK_PIN 7
85#if (HW_VERSION == 0)
86#define LED_RX_DET_RED_PORT 1
87#define LED_RX_DET_RED_PIN 11 // unused
88#define LED_RX_DET_GREEN_PORT 3
89#define LED_RX_DET_GREEN_PIN 4 // this LED is lit when logic low in Rev A
90#else
91#define LED_RX_DET_RED_PORT 0
92#define LED_RX_DET_RED_PIN 8
93#define LED_RX_DET_GREEN_PORT 0
94#define LED_RX_DET_GREEN_PIN 9
95#endif
96#define LED_RJ45S11_PORT 1
97#define LED_RJ45S11_PIN 1
98#define LED_RJ45S12_PORT 1
99#define LED_RJ45S12_PIN 10
100
101
128
129#endif /* __PARAMETERS_H__ */
Header file of 24AA32A/24LC32A Interface.
struct no_os_eeprom_init_param eeprom_ip
Definition common_data.c:50
struct no_os_uart_init_param uart_console_ip
Definition platform.c:53
Header file for EEPROM APIs.
Header file of GPIO Interface.
Header file of I2C Interface.
Header file of UART interface.
Structure holding the parameters for EEPROM initialization.
Definition no_os_eeprom.h:47
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98