no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
35 #ifndef __PARAMETERS_H__
36 #define __PARAMETERS_H__
37 
38 /******************************************************************************/
39 /***************************** Include Files **********************************/
40 /******************************************************************************/
41 
42 #include "maxim_irq.h"
43 #include "maxim_spi.h"
44 #include "maxim_gpio.h"
45 #include "maxim_uart.h"
46 #include "maxim_uart_stdio.h"
47 
48 /******************************************************************************/
49 /********************** Macros and Constants Definitions **********************/
50 /******************************************************************************/
51 
52 #ifdef IIO_SUPPORT
53 #define INTC_DEVICE_ID 0
54 #endif
55 
56 #define UART_DEVICE_ID 0
57 #define UART_BAUDRATE 57600
58 #define UART_EXTRA &adis1647x_uart_extra_ip
59 #define UART_OPS &max_uart_ops
60 #define UART_IRQ_ID UART0_IRQn
61 
62 
63 #define SPI_DEVICE_ID 1
64 #define SPI_CS 1
65 
66 #define SPI_BAUDRATE 1000000
67 #define SPI_OPS &max_spi_ops
68 #define SPI_EXTRA &adis1647x_spi_extra_ip
69 
70 #define GPIO_OPS &max_gpio_ops
71 #define GPIO_EXTRA &adis1647x_gpio_extra_ip
72 
76 
77 #define GPIO_RESET_PIN_NUM 19
78 #define GPIO_RESET_PORT_NUM 0
79 
80 
81 #ifdef IIO_TRIGGER_EXAMPLE
82 #define GPIO_DRDY_PIN_NUM 6
83 #define GPIO_DRDY_PORT_NUM 1
84 
85 #define NVIC_GPIO_IRQ GPIO1_IRQn
86 
87 #define ADIS1647X_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
88 #define ADIS1647X_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
89 
90 #define GPIO_IRQ_ID GPIO_DRDY_PORT_NUM
91 #define GPIO_IRQ_OPS &max_gpio_irq_ops
92 #define GPIO_IRQ_EXTRA &adis_gpio_drdy_extra_ip
93 
94 extern struct no_os_gpio_init_param adis_gpio_drdy_ip;
95 extern struct max_gpio_init_param adis_gpio_drdy_extra_ip;
96 #endif
97 
98 #endif /* __PARAMETERS_H__ */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
adis1647x_uart_extra_ip
struct max_uart_init_param adis1647x_uart_extra_ip
Definition: parameters.c:44
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
adis1647x_gpio_extra_ip
struct max_gpio_init_param adis1647x_gpio_extra_ip
Definition: parameters.c:48
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:55
adis1647x_spi_extra_ip
struct max_spi_init_param adis1647x_spi_extra_ip
Definition: parameters.c:52