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#if (TARGET_NUM == 32690)
45#define UART_IRQ_ID UART0_IRQn
46#define UART_DEVICE_ID 0
47#define UART_BAUDRATE 57600
48#endif
49
50#define UART_EXTRA &ad4692_uart_extra
51#define UART_OPS &max_uart_ops
52
53#if (TARGET_NUM == 32690)
54#define SPI_DEVICE_ID 1
55#define SPI_CS 0
56#endif
57
58#define SPI_BAUDRATE 1000000
59#define SPI_OPS &max_spi_ops
60#define SPI_EXTRA &ad4692_spi_extra
61
64
65#define GPIO_OPS &max_gpio_ops
66#define GPIO_EXTRA &ad4692_gpio_extra_ip
67#define GPIO_IRQ_OPS &max_gpio_irq_ops
68#define GPIO_IRQ_EXTRA &ad4692_gpio_extra_ip
69
70#define PWM_OPS &max_pwm_ops
71#define PWM_EXTRA &ad4692_pwm_extra_ip
72#define PWM_ID 1
73
76#if (TARGET_NUM == 32690)
77#define GPIO_DREADY_PORT_NUM 1
78#define GPIO_DREADY_PIN_NUM 30
79#define GPIO_IRQ_ID 1
80#define GPIO_HANDLE MXC_GPIO_GET_GPIO(GPIO_DREADY_PORT_NUM)
81
82#define GPIO_RESET_PORT_NUM 0
83#define GPIO_RESET_PIN_NUM 8
84
85#define NVIC_GPIO_IRQ GPIO3_IRQn
86#endif
87
88#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