no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
41 #ifndef __PARAMETERS_H__
42 #define __PARAMETERS_H__
43 
44 /******************************************************************************/
45 /***************************** Include Files **********************************/
46 /******************************************************************************/
47 
48 #include "maxim_irq.h"
49 #include "maxim_spi.h"
50 #include "maxim_gpio.h"
51 #include "maxim_uart.h"
52 #include "maxim_uart_stdio.h"
53 
54 /******************************************************************************/
55 /********************** Macros and Constants Definitions **********************/
56 /******************************************************************************/
57 
58 #ifdef IIO_SUPPORT
59 #define INTC_DEVICE_ID 0
60 #endif
61 
62 #define UART_DEVICE_ID 0
63 #define UART_BAUDRATE 57600
64 #define UART_EXTRA &adis1655x_uart_extra_ip
65 #define UART_OPS &max_uart_ops
66 #define UART_IRQ_ID UART0_IRQn
67 
68 
69 #define SPI_DEVICE_ID 1
70 #define SPI_CS 1
71 
72 #define SPI_BAUDRATE 15000000
73 #define SPI_OPS &max_spi_ops
74 #define SPI_EXTRA &adis1655x_spi_extra_ip
75 
76 #define GPIO_OPS &max_gpio_ops
77 #define GPIO_EXTRA &adis1655x_gpio_extra_ip
78 
82 
83 #define GPIO_RESET_PIN_NUM 19
84 #define GPIO_RESET_PORT_NUM 0
85 
86 
87 #ifdef IIO_TRIGGER_EXAMPLE
88 #define GPIO_DRDY_PIN_NUM 6
89 #define GPIO_DRDY_PORT_NUM 1
90 
91 #define NVIC_GPIO_IRQ GPIO1_IRQn
92 
93 #define ADIS1655X_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
94 #define ADIS1655X_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
95 
96 #define GPIO_IRQ_ID GPIO_DRDY_PORT_NUM
97 #define GPIO_IRQ_OPS &max_gpio_irq_ops
98 #define GPIO_IRQ_EXTRA &adis_gpio_drdy_extra_ip
99 
100 extern struct no_os_gpio_init_param adis_gpio_drdy_ip;
101 extern struct max_gpio_init_param adis_gpio_drdy_extra_ip;
102 #endif
103 
104 #endif /* __PARAMETERS_H__ */
adis1655x_gpio_extra_ip
struct max_gpio_init_param adis1655x_gpio_extra_ip
Definition: parameters.c:54
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
adis1655x_uart_extra_ip
struct max_uart_init_param adis1655x_uart_extra_ip
Definition: parameters.c:50
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:59
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:61
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:61
adis1655x_spi_extra_ip
struct max_spi_init_param adis1655x_spi_extra_ip
Definition: parameters.c:58