no-OS
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 "stdio.h"
41 #include "platform_init.h"
42 #include "aducm3029_gpio.h"
43 #include "aducm3029_spi.h"
44 #include "aducm3029_irq.h"
45 #include "aducm3029_gpio_irq.h"
46 #include "aducm3029_uart.h"
47 #include "aducm3029_uart_stdio.h"
48 #include "no_os_gpio.h"
49 
50 /******************************************************************************/
51 /********************** Macros and Constants Definitions **********************/
52 /******************************************************************************/
53 
54 #ifdef IIO_SUPPORT
55 #define DATA_BUFFER_SIZE 300
56 #define INTC_DEVICE_ID 0
57 #endif
58 #define UART_IRQ_ID ADUCM_UART_INT_ID
59 
60 #define UART_DEVICE_ID 0
61 #define UART_BAUDRATE 115200
62 #define UART_EXTRA NULL
63 #define UART_OPS &aducm_uart_ops
64 
65 #define SPI_DEVICE_ID 1
66 #define SPI_BAUDRATE 4000000
67 #define SPI_CS 0
68 #define SPI_OPS &aducm_spi_ops
69 #define SPI_EXTRA &adxl355_spi_extra_ip
70 
71 #ifdef IIO_TRIGGER_EXAMPLE
72 #define GPIO_DRDY_PIN_NUM 12
73 #define GPIO_DRDY_PORT_NUM 0
74 #define GPIO_OPS &aducm_gpio_ops
75 #define GPIO_EXTRA NULL /* Not used for aducm3029 platform */
76 
77 #define GPIO_IRQ_ID ADUCM_GPIO_A_GROUP_SOFT_CTRL
78 #define GPIO_IRQ_OPS &aducm_gpio_irq_ops
79 #define GPIO_IRQ_EXTRA NULL /* Not used for aducm3029 platform */
80 
81 #define ADXL355_GPIO_TRIG_IRQ_ID GPIO_DRDY_PIN_NUM
82 #define ADXL355_GPIO_CB_HANDLE NULL /* Not used for aducm3029 platform */
83 
84 extern struct no_os_gpio_init_param adxl355_gpio_drdy_ip;
85 #endif
86 
88 #endif /* __PARAMETERS_H__ */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
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:87
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:42
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