no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 NO_OS_USB_UART
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 NO_OS_USB_UART
56#endif
57
58#define INTC_DEVICE_ID 0
59#define UART_DEVICE_ID 0
60#define UART_BAUDRATE 57600
61#ifdef NO_OS_USB_UART
62#define UART_IRQ_ID USB_IRQn
63#define UART_EXTRA &iio_demo_usb_uart_extra_ip
64#define UART_OPS &max_usb_uart_ops
65#else
66#define UART_IRQ_ID UART0_IRQn
67#define UART_EXTRA &iio_demo_uart_extra_ip
68#define UART_OPS &max_uart_ops
69#endif
70
71#ifdef IIO_TIMER_TRIGGER_EXAMPLE
72/* Adc Demo Timer settings */
73#define ADC_DEMO_TIMER_DEVICE_ID 0
74#define ADC_DEMO_TIMER_FREQ_HZ 1000000
75#define ADC_DEMO_TIMER_TICKS_COUNT 2000
76#define ADC_DEMO_TIMER_EXTRA NULL
77#define TIMER_OPS &max_timer_ops
78
79/* Adc Demo Timer trigger settings */
80#define ADC_DEMO_TIMER_IRQ_ID TMR0_IRQn
81#define TIMER_IRQ_OPS &max_irq_ops
82#define ADC_DEMO_TIMER_IRQ_EXTRA NULL
83
84/* Adc Demo timer trigger settings */
85#define ADC_DEMO_TIMER_CB_HANDLE MXC_TMR0
86#define ADC_DEMO_TIMER_TRIG_IRQ_ID TMR0_IRQn
87
88/* Dac Demo Timer settings */
89#define DAC_DEMO_TIMER_DEVICE_ID 1
90#define DAC_DEMO_TIMER_FREQ_HZ 1000000
91#define DAC_DEMO_TIMER_TICKS_COUNT 2000
92#define DAC_DEMO_TIMER_EXTRA NULL
93#define TIMER_OPS &max_timer_ops
94
95/* Dac Demo Timer trigger settings */
96#define DAC_DEMO_TIMER_IRQ_ID TMR1_IRQn
97#define TIMER_IRQ_OPS &max_irq_ops
98#define DAC_DEMO_TIMER_IRQ_EXTRA NULL
99
100/* Dac Demo timer trigger settings */
101#define DAC_DEMO_TIMER_CB_HANDLE MXC_TMR1
102#define DAC_DEMO_TIMER_TRIG_IRQ_ID TMR1_IRQn
103
104#endif
105
106#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