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