no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/********************************************************************************
2 * @brief Definitions specific to Maxim platform used by ad8460 project.
3 * @author John Erasmus Mari Geronimo (johnerasmusmari.geronimo@analog.com)
4 ********************************************************************************
5 * Copyright 2025(c) Analog Devices, Inc.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright notice,
11 * this list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright notice,
14 * this list of conditions and the following disclaimer in the documentation
15 * and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of Analog Devices, Inc. nor the names of its
18 * contributors may be used to endorse or promote products derived from this
19 * software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
24 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
27 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *******************************************************************************/
32#ifndef __PARAMETERS_H__
33#define __PARAMETERS_H__
34
35#include "maxim_gpio.h"
36#include "maxim_spi.h"
37#include "maxim_uart.h"
38#include "maxim_uart_stdio.h"
39
40#ifdef IIO_SUPPORT
41#define INTC_DEVICE_ID 0
42#endif
43
44#if (TARGET_NUM == 32690)
45#define UART_IRQ_ID UART0_IRQn
46#define UART_DEVICE_ID 0
47#elif (TARGET_NUM == 32665)
48#define UART_IRQ_ID UART1_IRQn
49#define UART_DEVICE_ID 1
50#endif
51
52#define UART_BAUDRATE 115200
53#define UART_OPS &max_uart_ops
54#define UART_EXTRA &max_uart_extra
55
56#if (TARGET_NUM == 32650)
57#define SPI_DEVICE_ID 1
58#define SPI_CS 0
59#elif (TARGET_NUM == 32660) || (TARGET_NUM == 32655)
60#define SPI_DEVICE_ID 0
61#define SPI_CS 0
62#elif (TARGET_NUM == 32665)
63#define SPI_DEVICE_ID 1
64#define SPI_CS 0
65#elif (TARGET_NUM == 78000)
66#define SPI_DEVICE_ID 1
67#define SPI_CS 1
68#endif
69
70#define SPI_MAX_SPEED 1000000
71#define SPI_OPS &max_spi_ops
72#define SPI_EXTRA &max_spi_extra
73
74#define GPIO_RSTN_PORT_NUM 0
75#define GPIO_RSTN_PIN_NUM 27
76#define GPIO_OPS &max_gpio_ops
77#define GPIO_EXTRA &max_gpio_extra
78
82
83#endif /* __PARAMETERS_H__ */
struct max_uart_init_param max_uart_extra
Definition parameters.c:35
struct max_gpio_init_param max_gpio_extra
Definition parameters.c:46
struct max_spi_init_param max_spi_extra
Definition parameters.c:40
GPIO platform specific init parameters.
Definition maxim_gpio.h:55
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55