no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_uart.h"
41#include "maxim_uart_stdio.h"
42
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#define UART_EXTRA &ade7816_uart_extra
50#define UART_OPS &max_uart_ops
51
52#if (TARGET_NUM == 32690)
53#define SPI_DEVICE_ID 4
54#define SPI_CS 0
55#endif
56
57#define SPI_BAUDRATE 100000
58#define SPI_OPS &max_spi_ops
59#define SPI_EXTRA &ade7816_spi_extra
60
61#if (TARGET_NUM == 32690)
62#define GPIO_RESET_PORT_NUM 1
63#define GPIO_RESET_PIN_NUM 6
64
65#define GPIO_IRQ0_PORT_NUM 2
66#define GPIO_IRQ0_PIN_NUM 21
67
68#define GPIO_IRQ_ID 2
69#define GPIO_HANDLE MXC_GPIO_GET_GPIO(2)
70
71#define GPIO_OPS &max_gpio_ops
72#define GPIO_EXTRA &ade7816_gpio_extra
73
74#define GPIO_IRQ_OPS &max_gpio_irq_ops
75#define GPIO_IRQ_EXTRA &ade7816_gpio_extra
76
77#define NVIC_GPIO_IRQ GPIO2_IRQn
78#endif
79
83
84#endif /* __PARAMETERS_H__ */
struct max_gpio_init_param ade7816_gpio_extra
Definition parameters.c:45
struct max_spi_init_param ade7816_spi_extra
Definition parameters.c:39
struct max_uart_init_param ade7816_uart_extra
Definition parameters.c:35
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