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
26#define XCVR_RESET_PORT 2
27#define XCVR_RESET_PIN 0
28
29#define XCVR_EN_PORT 2
30#define XCVR_EN_PIN 1
31
32#define XCVR_CLK_PORT 2
33#define XCVR_CLK_PIN 3
34
35#define XCVR_DATA_PORT 2
36#define XCVR_DATA_PIN 2
37
38#define XCVR_SCANOUT_TX_PORT 2
39#define XCVR_SCANOUT_TX_PIN 4
40
41#define XCVR_SCANOUT_RX_PORT 2
42#define XCVR_SCANOUT_RX_PIN 5
43
44#define ADIN1300_RESET_PORT 1
45#define ADIN1300_RESET_PIN 23
46
47#define MAX24287_RESET_PORT 1
48#define MAX24287_RESET_PIN 24
49
50#define ADIN1300_MDIO_PORT 1
51#define ADIN1300_MDIO_PIN 4
52
53#define ADIN1300_MDC_PORT 1
54#define ADIN1300_MDC_PIN 5
55
56#define ADIN1300_INT_PORT 2
57#define ADIN1300_INT_PIN 16
58#define ADIN1300_INT_IRQn GPIO2_IRQn
59
60#define MAX24287_MDIO_PORT 1
61#define MAX24287_MDIO_PIN 6
62
63#define MAX24287_MDC_PORT 1
64#define MAX24287_MDC_PIN 7
65
66#define MAX24287_INT_PORT 1
67#define MAX24287_INT_PIN 0
68#define MAX24287_INT_IRQn GPIO1_IRQn
69
70#define BRD_SELECT_PORT 0
71#define BRD_SELECT_PIN 20
72
73#define FACTORY_DEFAULTS_PORT 3
74#define FACTORY_DEFAULTS_PIN 9
75
76#define LED_TX_DET_RED_PORT 0
77#define LED_TX_DET_RED_PIN 4
78#define LED_TX_DET_GREEN_PORT 0
79#define LED_TX_DET_GREEN_PIN 5
80#define LED_TX_LOCK_PORT 0
81#define LED_TX_LOCK_PIN 6
82#define LED_RX_LOCK_PORT 0
83#define LED_RX_LOCK_PIN 7
84#if (HW_VERSION == 0)
85#define LED_RX_DET_RED_PORT 1
86#define LED_RX_DET_RED_PIN 11 // unused
87#define LED_RX_DET_GREEN_PORT 3
88#define LED_RX_DET_GREEN_PIN 4 // this LED is lit when logic low in Rev A
89#else
90#define LED_RX_DET_RED_PORT 0
91#define LED_RX_DET_RED_PIN 8
92#define LED_RX_DET_GREEN_PORT 0
93#define LED_RX_DET_GREEN_PIN 9
94#endif
95#define LED_RJ45S11_PORT 1
96#define LED_RJ45S11_PIN 1
97#define LED_RJ45S12_PORT 1
98#define LED_RJ45S12_PIN 10
99
100
127
128#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