no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __PARAMETERS_H__
40 #define __PARAMETERS_H__
41 
42 #include "maxim_irq.h"
43 #include "maxim_spi.h"
44 #include "maxim_uart.h"
45 #include "maxim_uart_stdio.h"
46 
47 #ifdef IIO_SUPPORT
48 #define INTC_DEVICE_ID 0
49 #endif
50 
51 #if (TARGET_NUM == 32690)
52 #define UART_IRQ_ID UART0_IRQn
53 #define UART_DEVICE_ID 0
54 #define UART_BAUDRATE 57600
55 #elif (TARGET_NUM == 32665)
56 #define UART_IRQ_ID UART1_IRQn
57 #define UART_DEVICE_ID 1
58 #define UART_BAUDRATE 57600
59 #endif
60 
61 #define UART_EXTRA &max22190_uart_extra
62 #define UART_OPS &max_uart_ops
63 
64 #if (TARGET_NUM == 32690)
65 #define SPI_DEVICE_ID 4
66 #define SPI_CS 0
67 #elif (TARGET_NUM == 32665)
68 #define SPI_DEVICE_ID 1
69 #define SPI_CS 0
70 #endif
71 
72 #define SPI_BAUDRATE 100000
73 #define SPI_OPS &max_spi_ops
74 #define SPI_EXTRA &max22190_spi_extra
75 
78 
79 #endif /* __PARAMATERS_H__ */
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:59
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:61
max22190_spi_extra
struct max_spi_init_param max22190_spi_extra
Definition: parameters.c:45
max22190_uart_extra
struct max_uart_init_param max22190_uart_extra
Definition: parameters.c:41