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_uart.h"
48 #include "maxim_stdio.h"
49 #include "maxim_timer.h"
50 #include "common_data.h"
51 #include "no_os_util.h"
52 #include "no_os_timer.h"
53 
54 /******************************************************************************/
55 /********************** Macros and Constants Definitions **********************/
56 /******************************************************************************/
57 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
58  sizeof(uint16_t))
59 
60 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
61 
62 #define INTC_DEVICE_ID 0
63 #define UART_IRQ_ID UART0_IRQn
64 #define UART_DEVICE_ID 0
65 #define UART_BAUDRATE 57600
66 
67 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
68 /* Adc Demo Timer settings */
69 #define ADC_DEMO_TIMER_DEVICE_ID 0
70 #define ADC_DEMO_TIMER_FREQ_HZ 1000000
71 #define ADC_DEMO_TIMER_TICKS_COUNT 2000
72 #define ADC_DEMO_TIMER_EXTRA NULL
73 #define TIMER_OPS &max_timer_ops
74 
75 /* Adc Demo Timer trigger settings */
76 #define ADC_DEMO_TIMER_IRQ_ID TMR0_IRQn
77 #define TIMER_IRQ_OPS &max_irq_ops
78 #define ADC_DEMO_TIMER_IRQ_EXTRA NULL
79 
80 /* Adc Demo timer trigger settings */
81 #define ADC_DEMO_TIMER_CB_HANDLE MXC_TMR0
82 #define ADC_DEMO_TIMER_TRIG_IRQ_ID TMR0_IRQn
83 
84 /* Dac Demo Timer settings */
85 #define DAC_DEMO_TIMER_DEVICE_ID 1
86 #define DAC_DEMO_TIMER_FREQ_HZ 1000000
87 #define DAC_DEMO_TIMER_TICKS_COUNT 2000
88 #define DAC_DEMO_TIMER_EXTRA NULL
89 #define TIMER_OPS &max_timer_ops
90 
91 /* Dac Demo Timer trigger settings */
92 #define DAC_DEMO_TIMER_IRQ_ID TMR1_IRQn
93 #define TIMER_IRQ_OPS &max_irq_ops
94 #define DAC_DEMO_TIMER_IRQ_EXTRA NULL
95 
96 /* Dac Demo timer trigger settings */
97 #define DAC_DEMO_TIMER_CB_HANDLE MXC_TMR1
98 #define DAC_DEMO_TIMER_TRIG_IRQ_ID TMR1_IRQn
99 
100 #endif
101 
102 #endif /* __PARAMETERS_H__ */
no_os_timer.h
Timer control module header.
no_os_util.h
Header file of utility functions.