no-OS
projects
ad9545
src
platform
linux
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 <stdbool.h>
41
#include <stdint.h>
42
#include "
linux_spi.h
"
43
#include "
linux_i2c.h
"
44
45
/******************************************************************************/
46
/********************** Macros and Constants Definitions **********************/
47
/******************************************************************************/
48
#define SPI_DEVICE_ID 0
49
#define SPI_CS 0
50
#define SPI_BAUDRATE 1000000
51
#define SPI_OPS &linux_spi_ops
52
#define SPI_EXTRA NULL
53
54
#define I2C_EXTRA &ad9545_i2c_extra_ip
55
#define I2C_OPS &linux_i2c_ops
56
57
#define COMM_TYPE SPI
58
59
extern
struct
linux_i2c_init_param
ad9545_i2c_extra_ip
;
60
61
#endif
/* __PARAMETERS_H__ */
linux_spi.h
linux_i2c.h
linux_i2c_init_param
Structure holding the initialization parameters for Linux platform specific I2C parameters.
Definition:
linux_i2c.h:41
ad9545_i2c_extra_ip
struct linux_i2c_init_param ad9545_i2c_extra_ip
Definition:
parameters.c:43
Generated by
1.8.17