no-OS
projects
adt7420-pmdz
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
#include "maxim_gpio.h"
51
52
/******************************************************************************/
53
/********************** Macros and Constants Definitions **********************/
54
/******************************************************************************/
55
56
#ifdef IIO_SUPPORT
57
#define INTC_DEVICE_ID 0
58
#endif
59
60
#if (TARGET_NUM == 32650) || (TARGET_NUM == 78000)
61
#define I2C_DEVICE_ID 1
62
#elif (TARGET_NUM == 32655)
63
#define I2C_DEVICE_ID 2
64
#elif (TARGET_NUM == 32665) || (TARGET_NUM == 32660) || (TARGET_NUM == 32690)
65
#define I2C_DEVICE_ID 0
66
#endif
67
68
#if (TARGET_NUM == 32690)
69
#define UART_IRQ_ID UART2_IRQn
70
#define UART_DEVICE_ID 2
71
#else
72
#define UART_IRQ_ID UART0_IRQn
73
#define UART_DEVICE_ID 0
74
#endif
75
#define UART_BAUDRATE 57600
76
#define UART_OPS &max_uart_ops
77
78
#define I2C_OPS &max_i2c_ops
79
80
extern
struct
max_uart_init_param
xuip
;
81
extern
struct
max_i2c_init_param
adt7420_i2c_extra
;
82
83
#endif
/* __PARAMETERS_H__ */
max_i2c_init_param
Definition:
maxim_i2c.h:64
adt7420_i2c_extra
struct max_i2c_init_param adt7420_i2c_extra
Definition:
parameters.c:52
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