no-OS
projects
eval-ltc4306
src
platform
maxim
parameters.h
Go to the documentation of this file.
1
/***************************************************************************/
40
#ifndef __PARAMETERS_H__
41
#define __PARAMETERS_H__
42
43
/******************************************************************************/
44
/***************************** Include Files **********************************/
45
/******************************************************************************/
46
#include "maxim_uart.h"
47
#include "maxim_uart_stdio.h"
48
#include "maxim_i2c.h"
49
#include "maxim_irq.h"
50
51
/******************************************************************************/
52
/********************** Macros and Constants Definitions **********************/
53
/******************************************************************************/
54
55
#if (TARGET_NUM == 32650) || (TARGET_NUM == 78000)
56
#define I2C_DEVICE_ID 1
57
#elif (TARGET_NUM == 32655)
58
#define I2C_DEVICE_ID 2
59
#elif (TARGET_NUM == 32665) || (TARGET_NUM == 32660) || (TARGET_NUM == 32690)
60
#define I2C_DEVICE_ID 0
61
#endif
62
63
#define I2C_OPS &max_i2c_ops
64
#define I2C_EXTRA &max_i2c_extra
65
66
#if (TARGET_NUM == 32690)
67
#define UART_IRQ_ID UART2_IRQn
68
#define UART_DEVICE_ID 2
69
#elif (TARGET_NUM == 32650) || (TARGET_NUM == 32655)
70
#define UART_IRQ_ID UART0_IRQn
71
#define UART_DEVICE_ID 0
72
#else
73
#define UART_IRQ_ID UART1_IRQn
74
#define UART_DEVICE_ID 1
75
#endif
76
77
#define UART_BAUDRATE 57600
78
#define UART_OPS &max_uart_ops
79
#define UART_EXTRA &xuip
80
81
#define MAX_DUT MAX5380M
82
83
extern
struct
max_uart_init_param
xuip
;
84
extern
struct
max_i2c_init_param
max_i2c_extra
;
85
86
#endif
/* __PARAMETERS_H__ */
max_i2c_init_param
Definition:
maxim_i2c.h:64
max_i2c_extra
MAXIM specific I2C handler structure.
Definition:
maxim_i2c.h:53
max_uart_init_param
Aditional UART config parameters.
Definition:
maxim_uart.h:61
xuip
struct max_uart_init_param xuip
Definition:
parameters.c:48
Generated by
1.8.17