no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef __PARAMETERS_H__
41 #define __PARAMETERS_H__
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
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"
51 
52 /******************************************************************************/
53 /********************** Macros and Constants Definitions **********************/
54 /******************************************************************************/
55 
56 #ifdef IIO_SUPPORT
57 #define INTC_DEVICE_ID 0
58 #define UART_IRQ_ID UART0_IRQn
59 #define UART_DEVICE_ID 0
60 #define UART_BAUDRATE 57600
61 #define UART_EXTRA &adxrs290_uart_extra_ip
62 #define UART_OPS &max_uart_ops
63 #endif
64 
65 #define SPI_DEVICE_ID 0
66 #define SPI_BAUDRATE 1000000
67 #define SPI_CS 0
68 #define SPI_OPS &max_spi_ops
69 #define SPI_EXTRA &adxrs290_spi_extra_ip
70 
71 #define GPIO_OPS &max_gpio_ops
72 #define GPIO_EXTRA &adxrs290_gpio_extra_ip
73 #if (TARGET_NUM != 32655)
74 #error PIN and PORT configuration have to be adapted for the used target.
75 #else
76 #define GPIO_SYNC_PIN_NUM 9
77 #define GPIO_SYNC_PORT_NUM 1
78 #endif
79 
83 
84 
85 #ifdef IIO_TRIGGER_EXAMPLE
86 #if (TARGET_NUM != 32655)
87 #error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 targets.
88 #else
89 /* Setting for Port1 Pin9 used for Sync pin.
90  Has to be adapted accordingly if another pin is used.
91  */
92 #define NVIC_GPIO_IRQ GPIO1_IRQn
93 #define GPIO_IRQ_ID 1
94 #endif
95 #define GPIO_IRQ_OPS &max_gpio_irq_ops
96 #define GPIO_IRQ_EXTRA &adxrs290_gpio_extra_ip
97 
98 #define ADXRS290_GPIO_TRIG_IRQ_ID GPIO_SYNC_PIN_NUM
99 #define ADXRS290_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_SYNC_PORT_NUM)
100 #endif
101 
102 #endif /* __PARAMETERS_H__ */
adxrs290_uart_extra_ip
struct max_uart_init_param adxrs290_uart_extra_ip
Definition: parameters.c:48
adxrs290_gpio_extra_ip
struct max_gpio_init_param adxrs290_gpio_extra_ip
Definition: parameters.c:52
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
adxrs290_spi_extra_ip
struct aducm_spi_init_param adxrs290_spi_extra_ip
Definition: parameters.c:48