Go to the documentation of this file.
40 #ifndef __PARAMETERS_H__
41 #define __PARAMETERS_H__
46 #include "maxim_irq.h"
47 #include "maxim_spi.h"
48 #include "maxim_gpio.h"
49 #include "maxim_uart.h"
50 #include "maxim_uart_stdio.h"
57 #define INTC_DEVICE_ID 0
60 #if (TARGET_NUM == 32690)
61 #define UART_IRQ_ID UART2_IRQn
62 #define UART_DEVICE_ID 2
63 #define UART_BAUDRATE 57600
65 #define UART_IRQ_ID UART0_IRQn
66 #define UART_DEVICE_ID 0
67 #define UART_BAUDRATE 57600
69 #define UART_EXTRA &adxl355_uart_extra_ip
70 #define UART_OPS &max_uart_ops
72 #if (TARGET_NUM == 78000)
73 #define SPI_DEVICE_ID 1
75 #elif (TARGET_NUM == 32650)
76 #define SPI_DEVICE_ID 1
78 #elif (TARGET_NUM == 32690)
79 #define SPI_DEVICE_ID 0
82 #define SPI_DEVICE_ID 0
86 #define SPI_BAUDRATE 1000000
87 #define SPI_OPS &max_spi_ops
88 #define SPI_EXTRA &adxl355_spi_extra_ip
93 #ifdef IIO_TRIGGER_EXAMPLE
94 #define GPIO_OPS &max_gpio_ops
96 #if (TARGET_NUM == 78000)
97 #define GPIO_DRDY_PIN_NUM 19
98 #define GPIO_DRDY_PORT_NUM 0
102 #define NVIC_GPIO_IRQ GPIO0_IRQn
103 #define GPIO_IRQ_ID 0
104 #elif (TARGET_NUM == 32655)
105 #define GPIO_DRDY_PIN_NUM 9
106 #define GPIO_DRDY_PORT_NUM 1
110 #define NVIC_GPIO_IRQ GPIO1_IRQn
111 #define GPIO_IRQ_ID 1
112 #elif (TARGET_NUM == 32690)
113 #define GPIO_DRDY_PIN_NUM 14
114 #define GPIO_DRDY_PORT_NUM 0
115 #define NVIC_GPIO_IRQ GPIO0_IRQn
116 #define GPIO_IRQ_ID 0
118 #error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 and max 78000 targets.
121 #define GPIO_EXTRA &adxl355_gpio_extra_ip
125 #define ADXL355_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
126 #define ADXL355_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_DRDY_PORT_NUM)
128 #define GPIO_IRQ_OPS &max_gpio_irq_ops
129 #define GPIO_IRQ_EXTRA &adxl355_gpio_extra_ip
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:59
Aditional UART config parameters.
Definition: maxim_uart.h:61
GPIO platform specific init parameters.
Definition: maxim_gpio.h:61