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_uart.h"
42 #include "maxim_uart_stdio.h"
43 #include "maxim_timer.h"
44 #include "common_data.h"
45 #include "no_os_util.h"
46 #include "no_os_timer.h"
47 #ifdef NO_OS_USB_UART
48 #include "maxim_usb_uart.h"
49 #endif
50 
51 /******************************************************************************/
52 /********************** Macros and Constants Definitions **********************/
53 /******************************************************************************/
54 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
55  sizeof(uint16_t))
56 
57 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
58 
60 #ifdef NO_OS_USB_UART
62 #endif
63 
64 #define INTC_DEVICE_ID 0
65 #define UART_DEVICE_ID 0
66 #define UART_BAUDRATE 57600
67 #ifdef NO_OS_USB_UART
68 #define UART_IRQ_ID USB_IRQn
69 #define UART_EXTRA &iio_demo_usb_uart_extra_ip
70 #define UART_OPS &max_usb_uart_ops
71 #else
72 #define UART_IRQ_ID UART0_IRQn
73 #define UART_EXTRA &iio_demo_uart_extra_ip
74 #define UART_OPS &max_uart_ops
75 #endif
76 
77 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
78 /* Adc Demo Timer settings */
79 #define ADC_DEMO_TIMER_DEVICE_ID 0
80 #define ADC_DEMO_TIMER_FREQ_HZ 1000000
81 #define ADC_DEMO_TIMER_TICKS_COUNT 2000
82 #define ADC_DEMO_TIMER_EXTRA NULL
83 #define TIMER_OPS &max_timer_ops
84 
85 /* Adc Demo Timer trigger settings */
86 #define ADC_DEMO_TIMER_IRQ_ID TMR0_IRQn
87 #define TIMER_IRQ_OPS &max_irq_ops
88 #define ADC_DEMO_TIMER_IRQ_EXTRA NULL
89 
90 /* Adc Demo timer trigger settings */
91 #define ADC_DEMO_TIMER_CB_HANDLE MXC_TMR0
92 #define ADC_DEMO_TIMER_TRIG_IRQ_ID TMR0_IRQn
93 
94 /* Dac Demo Timer settings */
95 #define DAC_DEMO_TIMER_DEVICE_ID 1
96 #define DAC_DEMO_TIMER_FREQ_HZ 1000000
97 #define DAC_DEMO_TIMER_TICKS_COUNT 2000
98 #define DAC_DEMO_TIMER_EXTRA NULL
99 #define TIMER_OPS &max_timer_ops
100 
101 /* Dac Demo Timer trigger settings */
102 #define DAC_DEMO_TIMER_IRQ_ID TMR1_IRQn
103 #define TIMER_IRQ_OPS &max_irq_ops
104 #define DAC_DEMO_TIMER_IRQ_EXTRA NULL
105 
106 /* Dac Demo timer trigger settings */
107 #define DAC_DEMO_TIMER_CB_HANDLE MXC_TMR1
108 #define DAC_DEMO_TIMER_TRIG_IRQ_ID TMR1_IRQn
109 
110 #endif
111 
112 #endif /* __PARAMETERS_H__ */
iio_demo_usb_uart_extra_ip
struct max_usb_uart_init_param iio_demo_usb_uart_extra_ip
Definition: parameters.c:60
no_os_timer.h
Timer control module header.
iio_demo_uart_extra_ip
struct max_uart_init_param iio_demo_uart_extra_ip
Definition: parameters.c:42
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:55
max_usb_uart_init_param
Aditional UART config parameters.
Definition: maxim_usb_uart.h:42
no_os_util.h
Header file of utility functions.