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 
45 /******************************************************************************/
46 /********************** Macros and Constants Definitions **********************/
47 /******************************************************************************/
48 
49 #if (TARGET_NUM == 32650) || (TARGET_NUM == 78000)
50 #define I2C_DEVICE_ID 1
51 #elif (TARGET_NUM == 32655)
52 #define I2C_DEVICE_ID 2
53 #elif (TARGET_NUM == 32665) || (TARGET_NUM == 32660) || (TARGET_NUM == 32690)
54 #define I2C_DEVICE_ID 0
55 #endif
56 
57 #define I2C_OPS &max_i2c_ops
58 #define I2C_EXTRA &max_i2c_extra
59 
60 #if (TARGET_NUM == 32690)
61 #define UART_IRQ_ID UART2_IRQn
62 #define UART_DEVICE_ID 2
63 #elif (TARGET_NUM == 32650) || (TARGET_NUM == 32655)
64 #define UART_IRQ_ID UART0_IRQn
65 #define UART_DEVICE_ID 0
66 #else
67 #define UART_IRQ_ID UART1_IRQn
68 #define UART_DEVICE_ID 1
69 #endif
70 
71 #define UART_BAUDRATE 57600
72 #define UART_OPS &max_uart_ops
73 #define UART_EXTRA &xuip
74 
75 #define MAX_DUT MAX5380M
76 
77 extern struct max_uart_init_param xuip;
78 extern struct max_i2c_init_param max_i2c_extra;
79 
80 #endif /* __PARAMETERS_H__ */
max_i2c_init_param
Definition: maxim_i2c.h:58
max_i2c_extra
MAXIM specific I2C handler structure.
Definition: maxim_i2c.h:47
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:55
xuip
struct max_uart_init_param xuip
Definition: parameters.c:42