no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34
35#ifndef __PARAMETERS_H__
36#define __PARAMETERS_H__
37
38#include "maxim_irq.h"
39#include "maxim_spi.h"
40#include "maxim_gpio.h"
41#include "maxim_uart.h"
42#include "maxim_uart_stdio.h"
43
44#ifdef IIO_SUPPORT
45#define INTC_DEVICE_ID 0
46#endif
47
48#define UART_DEVICE_ID 0
49#define UART_BAUDRATE 57600
50#define UART_EXTRA &adis1655x_uart_extra_ip
51#define UART_OPS &max_uart_ops
52#define UART_IRQ_ID UART0_IRQn
53
54
55#define SPI_DEVICE_ID 1
56#define SPI_CS 1
57
58#define SPI_BAUDRATE 15000000
59#define SPI_OPS &max_spi_ops
60#define SPI_EXTRA &adis1655x_spi_extra_ip
61
62#define GPIO_OPS &max_gpio_ops
63#define GPIO_EXTRA &adis1655x_gpio_extra_ip
64
68
69#define GPIO_RESET_PIN_NUM 19
70#define GPIO_RESET_PORT_NUM 0
71
72
73#ifdef IIO_TRIGGER_EXAMPLE
74#define GPIO_DRDY_PIN_NUM 6
75#define GPIO_DRDY_PORT_NUM 1
76
77#define NVIC_GPIO_IRQ GPIO1_IRQn
78
79#define ADIS1655X_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
80#define ADIS1655X_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
81
82#define GPIO_IRQ_ID GPIO_DRDY_PORT_NUM
83#define GPIO_IRQ_OPS &max_gpio_irq_ops
84#define GPIO_IRQ_EXTRA &adis_gpio_drdy_extra_ip
85
86extern struct no_os_gpio_init_param adis_gpio_drdy_ip;
87extern struct max_gpio_init_param adis_gpio_drdy_extra_ip;
88#endif
89
90#endif /* __PARAMETERS_H__ */
struct max_uart_init_param adis1655x_uart_extra_ip
Definition parameters.c:36
struct max_spi_init_param adis1655x_spi_extra_ip
Definition parameters.c:44
struct max_gpio_init_param adis1655x_gpio_extra_ip
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
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67