no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/*******************************************************************************
2 * @file parameters.h
3 * @brief Parameters header file
4 * @author Robert Budai (robert.budai@analog.com)
5 ********************************************************************************
6 * Copyright (c) 2024 Analog Devices, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 *
18 * 3. Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *******************************************************************************/
33
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "maxim_gpio.h"
38#include "maxim_i2c.h"
39#include "maxim_irq.h"
40#include "maxim_spi.h"
41#include "maxim_timer.h"
42#include "maxim_uart.h"
43#include "maxim_uart_stdio.h"
44#include "maxim_usb_uart.h"
45
46#define INTC_DEVICE_ID 0
47#define UART_DEVICE_ID 1
48#define UART_BAUDRATE 115200
49#define UART_IRQ_ID USB_IRQn
50#define UART_OPS &max_usb_uart_ops
51
52#if defined(PQM_CONN_ETH)
53#define WIZ_SPI_EXTRA &spi_extra_ip
54#endif
55
56#if defined(PQM_CONN_USB)
57#define UART_EXTRA &iio_demo_usb_uart_extra_ip
58#elif defined(PQM_CONN_SERIAL)
59#define UART_EXTRA &uart_stdio_extra_ip
60#elif defined(PQM_CONN_T1L)
61#define UART_EXTRA &uart_stdio_extra_ip
62#define ADIN_SPI_EXTRA &spi_extra_ip
63#endif
64
65#define SPI_CS 0
66#define SPI_DEVICE_ID 2
67#define SPI_BAUDRATE 15000000
68#define SPI_OPS &max_spi_ops
69
70#define I2C_EXTRA &vddioh_i2c_extra
71#define SPI_PQM_DEVICE_ID 1
72#define SPI_PQM_BAUDRATE 6000000
73#define SPI_PQM_EXTRA &spi_extra_ip
74#define UART_STDIO_EXT &uart_stdio_extra_ip
75
76#define TIMER_DEVICE_ID 0
77#define TIMER_FREQUENCY 1000
78#define TIMER_TICK_PERIOD 16384
79#define TIMER_OPS &max_timer_ops
80#define TIMER_IRQ_ID TMR0_IRQn
81#define TIMER_IRQ_OPS &max_irq_ops
82#define TIMER_IRQ_EXTRA NULL
83#define TIMER_CB_HANDLE MXC_TMR0
84#define TIMER_TRIG_IRQ_ID TMR0_IRQn
85
86#define RESET_GPIO_PIN_NUM 27
87#define RESET_GPIO_PORT_NUM 1
88#define GPIO_OPS &max_gpio_ops
89#define RESET_GPIO_EXTRA &max_reset_gpio_extra_ip
90#define GPIO_EXTRA &max_reset_gpio_extra_ip
91
92#define INTR_GPIO_PIN_NUM 30
93#define INTR_GPIO_PORT_NUM 0
94#define INTR_GPIO_EXTRA &max_reset_gpio_extra_ip
95#define INTR_GPIO_IRQ_ID 0
96#define INTR_OPS &max_gpio_irq_ops
97
105
106#endif /* __PARAMETERS_H__ */
struct stm32_spi_init_param spi_extra_ip
Definition parameters.c:138
struct max_gpio_init_param max_reset_gpio_extra_ip
Definition parameters.c:52
struct max_i2c_init_param vddioh_i2c_extra
Definition parameters.c:36
struct max_usb_uart_init_param iio_demo_usb_uart_extra_ip
Definition parameters.c:48
struct max_uart_init_param uart_stdio_extra_ip
Definition parameters.c:46
struct max_gpio_init_param max_intr_gpio_extra_ip
Definition parameters.c:56
struct max_uart_init_param iio_demo_uart_extra_ip
Definition parameters.c:36
GPIO platform specific init parameters.
Definition maxim_gpio.h:55
Definition maxim_i2c.h:58
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55
Aditional UART config parameters.
Definition maxim_usb_uart.h:42