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/******************************************************************************/
38#include <sys/platform.h>
39#include "adi_initialize.h"
40#include <drivers/pwr/adi_pwr.h>
41#include "aducm3029_irq.h"
42#include "aducm3029_uart.h"
43#include "common_data.h"
44#include "no_os_util.h"
45
46#define UART_DEVICE_ID 0
47#define UART_IRQ_ID ADUCM_UART_INT_ID
48#define UART_BAUDRATE 115200
49#define UART_EXTRA NULL
50#define UART_OPS &aducm_uart_ops
51
52/* This value can be modified based on the number
53of samples needed to be stored in the device buffer
54and based on the available RAM memory of the platform.
55 *
56 * It also bounds the per-buffer block size a client may request: the demo
57 * serves the IIO buffer from the static in_buff/out_buff arrays (sized
58 * SAMPLES_PER_CHANNEL_PLATFORM * channels * 2 bytes), and iio_open_dev rejects
59 * a requested block larger than that array with -ENOMEM. libiio defaults to a
60 * 256-sample block when iio_readdev is called without -b, so keep this at least
61 * 256; 512 leaves headroom for larger -b values while still fitting DSRAM_A. */
62#define SAMPLES_PER_CHANNEL_PLATFORM 512
63
64#endif /* __PARAMETERS_H__ */
Header file of IRQ driver for ADuCM302x.
Header file of UART driver for ADuCM302x.
Header file of utility functions.