no-OS
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 <stdbool.h>
47 #include <stdint.h>
48 #include "linux_spi.h"
49 #include "linux_i2c.h"
50 
51 /******************************************************************************/
52 /********************** Macros and Constants Definitions **********************/
53 /******************************************************************************/
54 #define SPI_DEVICE_ID 0
55 #define SPI_CS 0
56 #define SPI_BAUDRATE 1000000
57 #define SPI_OPS &linux_spi_ops
58 #define SPI_EXTRA NULL
59 
60 #define I2C_EXTRA &ad9545_i2c_extra_ip
61 #define I2C_OPS &linux_i2c_ops
62 
63 #define COMM_TYPE SPI
64 
66 
67 #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:47
ad9545_i2c_extra_ip
struct linux_i2c_init_param ad9545_i2c_extra_ip
Definition: parameters.c:49