Go to the documentation of this file.
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
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"
51 #define INTC_DEVICE_ID 0
54 #if (TARGET_NUM == 32690)
55 #define UART_IRQ_ID UART2_IRQn
56 #define UART_DEVICE_ID 2
57 #define UART_BAUDRATE 57600
59 #define UART_IRQ_ID UART0_IRQn
60 #define UART_DEVICE_ID 0
61 #define UART_BAUDRATE 57600
63 #define UART_EXTRA &adxl355_uart_extra_ip
64 #define UART_OPS &max_uart_ops
66 #if (TARGET_NUM == 78000)
67 #define SPI_DEVICE_ID 1
69 #elif (TARGET_NUM == 32650)
70 #define SPI_DEVICE_ID 1
72 #elif (TARGET_NUM == 32690)
73 #define SPI_DEVICE_ID 0
76 #define SPI_DEVICE_ID 0
80 #define SPI_BAUDRATE 1000000
81 #define SPI_OPS &max_spi_ops
82 #define SPI_EXTRA &adxl355_spi_extra_ip
87 #ifdef IIO_TRIGGER_EXAMPLE
88 #define GPIO_OPS &max_gpio_ops
90 #if (TARGET_NUM == 78000)
91 #define GPIO_DRDY_PIN_NUM 19
92 #define GPIO_DRDY_PORT_NUM 0
96 #define NVIC_GPIO_IRQ GPIO0_IRQn
98 #elif (TARGET_NUM == 32655)
99 #define GPIO_DRDY_PIN_NUM 9
100 #define GPIO_DRDY_PORT_NUM 1
104 #define NVIC_GPIO_IRQ GPIO1_IRQn
105 #define GPIO_IRQ_ID 1
106 #elif (TARGET_NUM == 32690)
107 #define GPIO_DRDY_PIN_NUM 14
108 #define GPIO_DRDY_PORT_NUM 0
109 #define NVIC_GPIO_IRQ GPIO0_IRQn
110 #define GPIO_IRQ_ID 0
112 #error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 and max 78000 targets.
115 #define GPIO_EXTRA &adxl355_gpio_extra_ip
119 #define ADXL355_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
120 #define ADXL355_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
122 #define GPIO_IRQ_OPS &max_gpio_irq_ops
123 #define GPIO_IRQ_EXTRA &adxl355_gpio_extra_ip
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
Aditional UART config parameters.
Definition: maxim_uart.h:55
GPIO platform specific init parameters.
Definition: maxim_gpio.h:55