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 "stdio.h"
47 #include "platform_init.h"
48 #include "aducm3029_gpio.h"
49 #include "aducm3029_spi.h"
50 #include "aducm3029_irq.h"
51 #include "aducm3029_gpio_irq.h"
52 #include "aducm3029_uart.h"
53 #include "aducm3029_uart_stdio.h"
54 #include "no_os_gpio.h"
55 
56 /******************************************************************************/
57 /********************** Macros and Constants Definitions **********************/
58 /******************************************************************************/
59 
60 #ifdef IIO_SUPPORT
61 #define DATA_BUFFER_SIZE 300
62 #define INTC_DEVICE_ID 0
63 #endif
64 #define UART_IRQ_ID ADUCM_UART_INT_ID
65 
66 #define UART_DEVICE_ID 0
67 #define UART_BAUDRATE 115200
68 #define UART_EXTRA NULL
69 #define UART_OPS &aducm_uart_ops
70 
71 #define SPI_DEVICE_ID 1
72 #define SPI_BAUDRATE 4000000
73 #define SPI_CS 0
74 #define SPI_OPS &aducm_spi_ops
75 #define SPI_EXTRA &adxl355_spi_extra_ip
76 
77 #ifdef IIO_TRIGGER_EXAMPLE
78 #define GPIO_DRDY_PIN_NUM 12
79 #define GPIO_DRDY_PORT_NUM 0
80 #define GPIO_OPS &aducm_gpio_ops
81 #define GPIO_EXTRA NULL /* Not used for aducm3029 platform */
82 
83 #define GPIO_IRQ_ID ADUCM_GPIO_A_GROUP_SOFT_CTRL
84 #define GPIO_IRQ_OPS &aducm_gpio_irq_ops
85 #define GPIO_IRQ_EXTRA NULL /* Not used for aducm3029 platform */
86 
87 #define ADXL355_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
88 #define ADXL355_GPIO_CB_HANDLE NULL /* Not used for aducm3029 platform */
89 
90 extern struct no_os_gpio_init_param adxl355_gpio_drdy_ip;
91 #endif
92 
94 #endif /* __PARAMETERS_H__ */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
aducm3029_uart.h
Header file of UART driver for ADuCM302x.
aducm_spi_init_param
Configuration structure sent in the extra parameter from no_os_spi_init_param.
Definition: aducm3029_spi.h:93
aducm3029_gpio_irq.h
Header file of GPIO IRQ interface for ADuCM3029 platform.
adxl355_spi_extra_ip
struct aducm_spi_init_param adxl355_spi_extra_ip
Definition: parameters.c:48
aducm3029_irq.h
Header file of IRQ driver for ADuCM302x.
aducm3029_uart_stdio.h
Header file for UART driver stdout/stdin redirection.
platform_init.h
ADuCM3029 platform initialization header.
no_os_gpio.h
Header file of GPIO Interface.
aducm3029_spi.h
ADuCM302x specific header for SPI driver.
aducm3029_gpio.h