no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __PARAMETERS_H__
34#define __PARAMETERS_H__
35
36#include "maxim_irq.h"
37#include "maxim_spi.h"
38#include "maxim_gpio.h"
39#include "maxim_gpio_irq.h"
40#include "maxim_pwm.h"
41#include "maxim_uart.h"
42#include "maxim_uart_stdio.h"
43
44#ifdef IIO_SUPPORT
45#define INTC_DEVICE_ID 0
46#endif
47
48#if (TARGET_NUM == 32690)
49#define UART_IRQ_ID UART0_IRQn
50#define UART_DEVICE_ID 0
51#define UART_BAUDRATE 57600
52#endif
53
54#define UART_EXTRA &ad4692_uart_extra
55#define UART_OPS &max_uart_ops
56
57#if (TARGET_NUM == 32690)
58#define SPI_DEVICE_ID 1
59#define SPI_CS 0
60#endif
61
62#define SPI_BAUDRATE 1000000
63#define SPI_OPS &max_spi_ops
64#define SPI_EXTRA &ad4692_spi_extra
65
68
69#define GPIO_OPS &max_gpio_ops
70#define GPIO_EXTRA &ad4692_gpio_extra_ip
71#define GPIO_IRQ_OPS &max_gpio_irq_ops
72#define GPIO_IRQ_EXTRA &ad4692_gpio_extra_ip
73
74#define PWM_OPS &max_pwm_ops
75#define PWM_EXTRA &ad4692_pwm_extra_ip
76#define PWM_ID 1
77
80#if (TARGET_NUM == 32690)
81#define GPIO_DREADY_PORT_NUM 1
82#define GPIO_DREADY_PIN_NUM 30
83#define GPIO_IRQ_ID 1
84#define GPIO_HANDLE MXC_GPIO_GET_GPIO(GPIO_DREADY_PORT_NUM)
85
86#define GPIO_RESET_PORT_NUM 0
87#define GPIO_RESET_PIN_NUM 8
88
89#define NVIC_GPIO_IRQ GPIO3_IRQn
90#endif
91
92#endif /* __PARAMETERS_H__ */
struct max_pwm_init_param ad4692_pwm_extra_ip
Definition parameters.c:49
struct max_gpio_init_param ad4692_gpio_extra_ip
Definition parameters.c:39
struct max_spi_init_param ad4692_spi_extra
Definition parameters.c:43
struct max_uart_init_param ad4692_uart_extra
Definition parameters.c:35
GPIO platform specific init parameters.
Definition maxim_gpio.h:55
Definition maxim_pwm.h:45
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55