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_timer.h"
53 #include "aducm3029_uart.h"
54 #include "no_os_timer.h"
55 
56 /******************************************************************************/
57 /********************** Macros and Constants Definitions **********************/
58 /******************************************************************************/
59 #define UART_DEVICE_ID 0
60 #define INTC_DEVICE_ID 0
61 #define UART_IRQ_ID ADUCM_UART_INT_ID
62 #define UART_BAUDRATE 115200
63 #define UART_EXTRA NULL
64 #define UART_OPS &aducm_uart_ops
65 
66 #define SPI_DEVICE_ID 1
67 #define SPI_BAUDRATE 4000000
68 #define SPI_CS 0
69 #define SPI_OPS &aducm_spi_ops
70 #define SPI_EXTRA &adxrs290_spi_extra_ip
71 
72 #define GPIO_SYNC_PIN_NUM 0x10
73 #define GPIO_SYNC_PORT_NUM 0
74 #define GPIO_OPS &aducm_gpio_ops
75 #define GPIO_EXTRA NULL
76 
77 #ifdef IIO_TRIGGER_EXAMPLE
78 #define GPIO_IRQ_ID ADUCM_XINT_SOFT_CTRL /* External interrupt used (to be able to use high level trigger) */
79 #define GPIO_IRQ_OPS &aducm_gpio_irq_ops
80 #define GPIO_IRQ_EXTRA NULL /* Not used for aducm3029 platform */
81 
82 #define ADXRS290_GPIO_TRIG_IRQ_ID ADI_XINT_EVENT_INT1 /* for EVAL-ADICUP3029 pin number 16 is connected to XINT1 */
83 #define ADXRS290_GPIO_CB_HANDLE NULL /* Not used for aducm3029 platform */
84 #endif
85 
86 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
87 /* ADXRS290 Timer settings */
89 #define ADXRS290_TIMER_DEVICE_ID 1
90 #define ADXRS290_TIMER_FREQ_HZ 200 /* Not used - Used clock source frequency is the one specified in adxrs290_timer_extra_ip */
91 #define ADXRS290_TIMER_TICKS_COUNT 0xffff
92 #define ADXRS290_TIMER_EXTRA &adxrs290_timer_extra_ip
93 #define TIMER_OPS &aducm_timer_ops
94 
95 /* ADXRS290 Timer trigger settings */
96 #define ADXRS290_TIMER_IRQ_ID TMR1_EVT_IRQn /* IRQ id for TMR1 */
97 #define TIMER_IRQ_OPS &aducm_irq_ops
98 #define ADADXRS290_TIMER_IRQ_EXTRA NULL /* Not used */
99 
100 /* ADXRS290 timer trigger settings */
101 #define ADXRS290_TIMER_CB_HANDLE 0 /* Device descriptor is being used as a handle in this case */
102 #define ADXRS290_TIMER_TRIG_IRQ_ID ADUCM_TIMER1_INT_ID
103 #endif
104 
106 
107 #endif /* __PARAMETERS_H__ */
aducm3029_uart.h
Header file of UART driver for ADuCM302x.
aducm_timer_init_param
Definition: aducm3029_timer.h:94
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.
no_os_timer.h
Timer control module header.
aducm3029_irq.h
Header file of IRQ driver for ADuCM302x.
adxrs290_timer_extra_ip
struct aducm_timer_init_param adxrs290_timer_extra_ip
Definition: parameters.c:55
platform_init.h
ADuCM3029 platform initialization header.
aducm3029_timer.h
Header file of TIMER driver for ADuCM302x.
aducm3029_spi.h
ADuCM302x specific header for SPI driver.
adxrs290_spi_extra_ip
struct aducm_spi_init_param adxrs290_spi_extra_ip
Definition: parameters.c:48
aducm3029_gpio.h