no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "maxim_irq.h"
38#include "maxim_uart.h"
39#include "maxim_uart_stdio.h"
40#include "maxim_timer.h"
41#include "common_data.h"
42#include "no_os_util.h"
43#include "no_os_timer.h"
44#ifdef CONFIG_USB_UART_MAXIM
45#include "maxim_usb_uart.h"
46#endif
47
48#define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
49 sizeof(uint16_t))
50
51#define SAMPLES_PER_CHANNEL_PLATFORM 2000
52
54#ifdef CONFIG_USB_UART_MAXIM
56#endif
57
58#define UART_DEVICE_ID 0
59#define UART_BAUDRATE 57600
60#ifdef CONFIG_USB_UART_MAXIM
61#define UART_IRQ_ID USB_IRQn
62#define UART_EXTRA &iio_demo_usb_uart_extra_ip
63#define UART_OPS &max_usb_uart_ops
64#else
65#define UART_IRQ_ID UART0_IRQn
66#define UART_EXTRA &iio_demo_uart_extra_ip
67#define UART_OPS &max_uart_ops
68#endif
69
70#ifdef CONFIG_IIO_DEMO_IIO_TIMER_TRIGGER_EXAMPLE
71/* Adc Demo Timer settings */
72#define ADC_DEMO_TIMER_DEVICE_ID 0
73#define ADC_DEMO_TIMER_FREQ_HZ 1000000
74#define ADC_DEMO_TIMER_TICKS_COUNT 2000
75#define ADC_DEMO_TIMER_EXTRA NULL
76#define TIMER_OPS &max_timer_ops
77
78/* Adc Demo Timer trigger settings */
79#define ADC_DEMO_TIMER_IRQ_ID TMR0_IRQn
80#define TIMER_IRQ_OPS &max_irq_ops
81#define ADC_DEMO_TIMER_IRQ_EXTRA NULL
82
83/* Adc Demo timer trigger settings */
84#define ADC_DEMO_TIMER_CB_HANDLE MXC_TMR0
85#define ADC_DEMO_TIMER_TRIG_IRQ_ID TMR0_IRQn
86
87/* Dac Demo Timer settings */
88#define DAC_DEMO_TIMER_DEVICE_ID 1
89#define DAC_DEMO_TIMER_FREQ_HZ 1000000
90#define DAC_DEMO_TIMER_TICKS_COUNT 2000
91#define DAC_DEMO_TIMER_EXTRA NULL
92#define TIMER_OPS &max_timer_ops
93
94/* Dac Demo Timer trigger settings */
95#define DAC_DEMO_TIMER_IRQ_ID TMR1_IRQn
96#define TIMER_IRQ_OPS &max_irq_ops
97#define DAC_DEMO_TIMER_IRQ_EXTRA NULL
98
99/* Dac Demo timer trigger settings */
100#define DAC_DEMO_TIMER_CB_HANDLE MXC_TMR1
101#define DAC_DEMO_TIMER_TRIG_IRQ_ID TMR1_IRQn
102
103#endif
104
105#endif /* __PARAMETERS_H__ */
struct max_usb_uart_init_param iio_demo_usb_uart_extra_ip
Definition parameters.c:48
struct max_uart_init_param iio_demo_uart_extra_ip
Definition parameters.c:36
Timer control module header.
Header file of utility functions.
Aditional UART config parameters.
Definition maxim_uart.h:55
Aditional UART config parameters.
Definition maxim_usb_uart.h:42