no-OS
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 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "maxim_irq.h"
41 #include "maxim_spi.h"
42 #include "maxim_gpio.h"
43 #include "maxim_uart.h"
44 #include "maxim_uart_stdio.h"
45 
46 /******************************************************************************/
47 /********************** Macros and Constants Definitions **********************/
48 /******************************************************************************/
49 #ifdef IIO_SUPPORT
50 #define INTC_DEVICE_ID 0
51 #define UART_IRQ_ID UART0_IRQn
52 #endif
53 
54 #define UART_DEVICE_ID 0
55 #define UART_BAUDRATE 57600
56 #define UART_EXTRA &xuip
57 #define UART_OPS &max_uart_ops
58 
59 #if (TARGET_NUM == 78000)
60 #define SPI_DEVICE_ID 1
61 #define SPI_CS 1
62 #else
63 #define SPI_DEVICE_ID 1
64 #define SPI_CS 0
65 #endif
66 
67 #define SPI_BAUDRATE 1000000
68 #define SPI_OPS &max_spi_ops
69 #define SPI_EXTRA &xsip
70 
71 extern struct max_uart_init_param xuip;
72 extern struct max_spi_init_param xsip;
73 
74 #endif /* __PARAMETERS_H__ */
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:55
xsip
struct max_spi_init_param xsip
Definition: parameters.c:46
xuip
struct max_uart_init_param xuip
Definition: parameters.c:42