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