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_uart.h"
38#include "maxim_uart_stdio.h"
39#include "maxim_i2c.h"
40#include "maxim_irq.h"
41#include "maxim_gpio.h"
42
43#ifdef IIO_SUPPORT
44#define INTC_DEVICE_ID 0
45#endif
46
47#if (TARGET_NUM == 32650) || (TARGET_NUM == 78000)
48#define I2C_DEVICE_ID 1
49#elif (TARGET_NUM == 32655)
50#define I2C_DEVICE_ID 2
51#elif (TARGET_NUM == 32665) || (TARGET_NUM == 32660) || (TARGET_NUM == 32690)
52#define I2C_DEVICE_ID 0
53#endif
54
55#if (TARGET_NUM == 32690)
56#define UART_IRQ_ID UART2_IRQn
57#define UART_DEVICE_ID 2
58#else
59#define UART_IRQ_ID UART0_IRQn
60#define UART_DEVICE_ID 0
61#endif
62#define UART_BAUDRATE 57600
63#define UART_OPS &max_uart_ops
64
65#define I2C_OPS &max_i2c_ops
66
67extern struct max_uart_init_param xuip;
69
70#endif /* __PARAMETERS_H__ */
struct max_uart_init_param xuip
Definition parameters.c:36
struct max_i2c_init_param adt7420_i2c_extra
Definition parameters.c:40
Definition maxim_i2c.h:58
Aditional UART config parameters.
Definition maxim_uart.h:55