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