no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
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#endif
46
47#if (TARGET_NUM == 32690)
48#define UART_IRQ_ID UART2_IRQn
49#define UART_DEVICE_ID 2
50#define UART_BAUDRATE 57600
51#else
52#define UART_IRQ_ID UART0_IRQn
53#define UART_DEVICE_ID 0
54#define UART_BAUDRATE 57600
55#endif
56#define UART_EXTRA &adxl355_uart_extra_ip
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#elif (TARGET_NUM == 32650)
63#define SPI_DEVICE_ID 1
64#define SPI_CS 0
65#elif (TARGET_NUM == 32690)
66#define SPI_DEVICE_ID 0
67#define SPI_CS 1
68#else
69#define SPI_DEVICE_ID 0
70#define SPI_CS 0
71#endif
72
73#define SPI_BAUDRATE 1000000
74#define SPI_OPS &max_spi_ops
75#define SPI_EXTRA &adxl355_spi_extra_ip
76
79
80#define GPIO_OPS &max_gpio_ops
81
82#if (TARGET_NUM == 78000)
83#define GPIO_DRDY_PIN_NUM 19
84#define GPIO_DRDY_PORT_NUM 0
85/* Setting for Port1 Pin9 used for DATA_READY.
86Has to be adapted accordingly if another pin is used.
87*/
88#define NVIC_GPIO_IRQ GPIO0_IRQn
89#define GPIO_IRQ_ID 0
90#elif (TARGET_NUM == 32655)
91#define GPIO_DRDY_PIN_NUM 9
92#define GPIO_DRDY_PORT_NUM 1
93/* Setting for Port1 Pin9 used for DATA_READY.
94Has to be adapted accordingly if another pin is used.
95 */
96#define NVIC_GPIO_IRQ GPIO1_IRQn
97#define GPIO_IRQ_ID 1
98#elif (TARGET_NUM == 32690)
99#define GPIO_DRDY_PIN_NUM 14
100#define GPIO_DRDY_PORT_NUM 0
101#define NVIC_GPIO_IRQ GPIO0_IRQn
102#define GPIO_IRQ_ID 0
103#endif
104
105#define GPIO_EXTRA &adxl355_gpio_extra_ip
106
108
109#define ADXL355_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
110#define ADXL355_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
111
112#define GPIO_IRQ_OPS &max_gpio_irq_ops
113#define GPIO_IRQ_EXTRA &adxl355_gpio_extra_ip
114
116
117#endif /* __PARAMETERS_H__ */
struct aducm_spi_init_param adxl355_spi_extra_ip
Definition parameters.c:36
struct no_os_gpio_init_param adxl355_gpio_drdy_ip
Definition parameters.c:43
struct max_uart_init_param adxl355_uart_extra_ip
Definition parameters.c:36
struct max_gpio_init_param adxl355_gpio_extra_ip
Definition parameters.c:51
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
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67