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