no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __PARAMETERS_H__
34#define __PARAMETERS_H__
35
36#include "maxim_irq.h"
37#include "maxim_spi.h"
38#include "maxim_uart.h"
39#include "maxim_uart_stdio.h"
40
41#ifdef IIO_SUPPORT
42#define INTC_DEVICE_ID 0
43#endif
44
45#if (TARGET_NUM == 32690)
46#define UART_IRQ_ID UART0_IRQn
47#define UART_DEVICE_ID 0
48#define UART_BAUDRATE 57600
49#elif (TARGET_NUM == 32665)
50#define UART_IRQ_ID UART1_IRQn
51#define UART_DEVICE_ID 1
52#define UART_BAUDRATE 57600
53#endif
54#define UART_EXTRA &max14916_uart_extra
55#define UART_OPS &max_uart_ops
56
57#if (TARGET_NUM == 32690)
58#define SPI_DEVICE_ID 4
59#define SPI_CS 0
60#elif (TARGET_NUM == 32665)
61#define SPI_DEVICE_ID 1
62#define SPI_CS 0
63#endif
64
65#define SPI_BAUDRATE 100000
66#define SPI_OPS &max_spi_ops
67#define SPI_EXTRA &max14916_spi_extra
68
71
72#endif /* __PARAMETERS_H__ */
struct ftd2xx_spi_init max14916_spi_extra
Definition parameters.c:35
struct max_uart_init_param max14916_uart_extra
Definition parameters.c:35
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55