no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "maxim_irq.h"
38#include "maxim_spi.h"
39#include "maxim_gpio.h"
40#include "maxim_uart.h"
41#include "maxim_uart_stdio.h"
42
43#ifdef IIO_SUPPORT
44#define INTC_DEVICE_ID 0
45#define UART_IRQ_ID UART0_IRQn
46#define UART_DEVICE_ID 0
47#define UART_BAUDRATE 57600
48#define UART_EXTRA &adxrs290_uart_extra_ip
49#define UART_OPS &max_uart_ops
50#endif
51
52#define SPI_DEVICE_ID 0
53#define SPI_BAUDRATE 1000000
54#define SPI_CS 0
55#define SPI_OPS &max_spi_ops
56#define SPI_EXTRA &adxrs290_spi_extra_ip
57
58#define GPIO_OPS &max_gpio_ops
59#define GPIO_EXTRA &adxrs290_gpio_extra_ip
60#if (TARGET_NUM != 32655)
61#error PIN and PORT configuration have to be adapted for the used target.
62#else
63#define GPIO_SYNC_PIN_NUM 9
64#define GPIO_SYNC_PORT_NUM 1
65#endif
66
70
71
72#if (TARGET_NUM != 32655)
73#error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 targets.
74#else
75/* Setting for Port1 Pin9 used for Sync pin.
76 Has to be adapted accordingly if another pin is used.
77 */
78#define NVIC_GPIO_IRQ GPIO1_IRQn
79#define GPIO_IRQ_ID 1
80#endif
81#define GPIO_IRQ_OPS &max_gpio_irq_ops
82#define GPIO_IRQ_EXTRA &adxrs290_gpio_extra_ip
83
84#define ADXRS290_GPIO_TRIG_IRQ_ID GPIO_SYNC_PIN_NUM
85#define ADXRS290_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_SYNC_PORT_NUM)
86
87#endif /* __PARAMETERS_H__ */
struct aducm_spi_init_param adxrs290_spi_extra_ip
Definition parameters.c:36
struct max_uart_init_param adxrs290_uart_extra_ip
Definition parameters.c:36
struct max_gpio_init_param adxrs290_gpio_extra_ip
Definition parameters.c:40
GPIO platform specific init parameters.
Definition maxim_gpio.h:55
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55