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_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 #endif
62 
63 #define SPI_DEVICE_ID 0
64 #define SPI_BAUDRATE 1000000
65 #define SPI_CS 0
66 #define SPI_OPS &max_spi_ops
67 #define SPI_EXTRA &adxrs290_spi_extra_ip
68 
69 #define GPIO_OPS &max_gpio_ops
70 #define GPIO_EXTRA &adxrs290_gpio_extra_ip
71 #if (TARGET_NUM != 32655)
72 #error PIN and PORT configuration have to be adapted for the used target.
73 #else
74 #define GPIO_SYNC_PIN_NUM 9
75 #define GPIO_SYNC_PORT_NUM 1
76 #endif
77 
80 
81 
82 #ifdef IIO_TRIGGER_EXAMPLE
83 #if (TARGET_NUM != 32655)
84 #error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 targets.
85 #else
86 /* Setting for Port1 Pin9 used for Sync pin.
87  Has to be adapted accordingly if another pin is used.
88  */
89 #define NVIC_GPIO_IRQ GPIO1_IRQn
90 #define GPIO_IRQ_ID 1
91 #endif
92 #define GPIO_IRQ_OPS &max_gpio_irq_ops
93 #define GPIO_IRQ_EXTRA &adxrs290_gpio_extra_ip
94 
95 #define ADXRS290_GPIO_TRIG_IRQ_ID GPIO_SYNC_PIN_NUM
96 #define ADXRS290_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_SYNC_PORT_NUM)
97 #endif
98 
99 #endif /* __PARAMETERS_H__ */
adxrs290_gpio_extra_ip
struct max_gpio_init_param adxrs290_gpio_extra_ip
Definition: parameters.c:48
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:55
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:60
adxrs290_spi_extra_ip
struct aducm_spi_init_param adxrs290_spi_extra_ip
Definition: parameters.c:48