no-OS
Loading...
Searching...
No Matches
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 UART_IRQ_ID UART0_IRQn
45#define UART_DEVICE_ID 0
46#define UART_BAUDRATE 57600
47#define UART_EXTRA &adxrs290_uart_extra_ip
48#define UART_OPS &max_uart_ops
49#endif
50
51#define SPI_DEVICE_ID 0
52#define SPI_BAUDRATE 1000000
53#define SPI_CS 0
54#define SPI_OPS &max_spi_ops
55#define SPI_EXTRA &adxrs290_spi_extra_ip
56
57#define GPIO_OPS &max_gpio_ops
58#define GPIO_EXTRA &adxrs290_gpio_extra_ip
59#if (TARGET_NUM != 32655)
60#error PIN and PORT configuration have to be adapted for the used target.
61#else
62#define GPIO_SYNC_PIN_NUM 9
63#define GPIO_SYNC_PORT_NUM 1
64#endif
65
69
70
71#if (TARGET_NUM != 32655)
72#error IIO_TRIGGER_EXAMPLE is currently supported only on max32655 targets.
73#else
74/* Setting for Port1 Pin9 used for Sync pin.
75 Has to be adapted accordingly if another pin is used.
76 */
77#define NVIC_GPIO_IRQ GPIO1_IRQn
78#define GPIO_IRQ_ID 1
79#endif
80#define GPIO_IRQ_OPS &max_gpio_irq_ops
81#define GPIO_IRQ_EXTRA &adxrs290_gpio_extra_ip
82
83#define ADXRS290_GPIO_TRIG_IRQ_ID GPIO_SYNC_PIN_NUM
84#define ADXRS290_GPIO_CB_HANDLE MXC_GPIO_GET_GPIO(GPIO_SYNC_PORT_NUM)
85
86#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