no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "maxim_uart.h"
41 #include "maxim_uart_stdio.h"
42 #include "maxim_i2c.h"
43 #include "maxim_irq.h"
44 #include "maxim_gpio.h"
45 
46 /******************************************************************************/
47 /********************** Macros and Constants Definitions **********************/
48 /******************************************************************************/
49 
50 #ifdef IIO_SUPPORT
51 #define INTC_DEVICE_ID 0
52 #endif
53 
54 #if (TARGET_NUM == 32650) || (TARGET_NUM == 78000)
55 #define I2C_DEVICE_ID 1
56 #elif (TARGET_NUM == 32655)
57 #define I2C_DEVICE_ID 2
58 #elif (TARGET_NUM == 32665) || (TARGET_NUM == 32660) || (TARGET_NUM == 32690)
59 #define I2C_DEVICE_ID 0
60 #endif
61 
62 #if (TARGET_NUM == 32690)
63 #define UART_IRQ_ID UART2_IRQn
64 #define UART_DEVICE_ID 2
65 #else
66 #define UART_IRQ_ID UART0_IRQn
67 #define UART_DEVICE_ID 0
68 #endif
69 #define UART_BAUDRATE 57600
70 #define UART_OPS &max_uart_ops
71 
72 #define I2C_OPS &max_i2c_ops
73 
74 extern struct max_uart_init_param xuip;
76 
77 #endif /* __PARAMETERS_H__ */
max_i2c_init_param
Definition: maxim_i2c.h:58
adt7420_i2c_extra
struct max_i2c_init_param adt7420_i2c_extra
Definition: parameters.c:46
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:55
xuip
struct max_uart_init_param xuip
Definition: parameters.c:42