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 "maxim_irq.h"
47 #include "maxim_spi.h"
48 #include "maxim_gpio.h"
49 #include "maxim_uart.h"
50 #include "maxim_uart_stdio.h"
51 #include "maxim_timer.h"
52 #include "no_os_timer.h"
53 
54 /******************************************************************************/
55 /********************** Macros and Constants Definitions **********************/
56 /******************************************************************************/
57 
58 #ifdef IIO_SUPPORT
59 #define INTC_DEVICE_ID 0
60 #endif
61 
62 #define UART_DEVICE_ID 0
63 #define UART_IRQ_ID UART0_IRQn
64 #define UART_BAUDRATE 115200
65 #define UART_EXTRA &ad7091r8_uart_extra_ip
66 #define UART_OPS &max_uart_ops
67 #define INTC_DEVICE_ID 0
68 #define SPI_DEVICE_ID 1
69 #define SPI_CS 1
70 #define SPI_BAUDRATE 200000
71 #define SPI_OPS &max_spi_ops
72 #define SPI_EXTRA &ad7091r8_spi_extra_ip
73 
74 #define GPIO_OPS &max_gpio_ops
75 #define GPIO_EXTRA &ad7091r8_gpio_extra_ip
76 #define GPIO_RESET_PIN_NUM 19
77 #define GPIO_RESET_PORT_NUM 0
78 #define GPIO_RESET_INIT &ad7091r8_gpio_reset_ip
79 #define GPIO_CONVST_PIN_NUM 6
80 #define GPIO_CONVST_PORT_NUM 1
81 #define GPIO_CONVST_INIT &ad7091r8_gpio_convst_ip
82 #define GPIO_IRQ_ID 0
83 
84 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
85 /* AD7091R-8 Timer settings */
86 #define AD7091R8_TIMER_DEVICE_ID 0
87 #define AD7091R8_TIMER_FREQ_HZ 1000000
88 #define AD7091R8_TIMER_TICKS_COUNT 2000
89 #define AD7091R8_TIMER_EXTRA NULL
90 #define TIMER_OPS &max_timer_ops
91 
92 /* AD7091R-8 Timer trigger settings */
93 #define AD7091R8_TIMER_IRQ_ID TMR0_IRQn
94 #define TIMER_IRQ_OPS &max_irq_ops
95 #define AD7091R8_TIMER_IRQ_EXTRA NULL
96 
97 /* AD7091R-8 timer trigger settings */
98 #define AD7091R8_TIMER_CB_HANDLE MXC_TMR0
99 #define AD7091R8_TIMER_TRIG_IRQ_ID TMR0_IRQn
100 
101 #endif /* IIO_TIMER_TRIGGER_EXAMPLE */
102 
108 
109 #endif /* __PARAMETERS_H__ */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
ad7091r8_gpio_extra_ip
struct max_gpio_init_param ad7091r8_gpio_extra_ip
Definition: parameters.c:59
ad7091r8_spi_extra_ip
struct max_spi_init_param ad7091r8_spi_extra_ip
Definition: parameters.c:53
no_os_timer.h
Timer control module header.
ad7091r8_gpio_reset_ip
struct no_os_gpio_init_param ad7091r8_gpio_reset_ip
Definition: parameters.c:64
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:59
ad7091r8_uart_extra_ip
struct max_uart_init_param ad7091r8_uart_extra_ip
Definition: parameters.c:49
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:61
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:61
ad7091r8_gpio_convst_ip
struct no_os_gpio_init_param ad7091r8_gpio_convst_ip
Definition: parameters.c:73