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_gpio.h"
45 #include "maxim_gpio_irq.h"
46 #include "maxim_uart.h"
47 #include "maxim_uart_stdio.h"
48 
49 #ifdef IIO_SUPPORT
50 #define INTC_DEVICE_ID 0
51 #endif
52 
53 #if (TARGET_NUM == 32690)
54 #define UART_IRQ_ID UART0_IRQn
55 #define UART_DEVICE_ID 0
56 #define UART_BAUDRATE 57600
57 #elif (TARGET_NUM == 32665)
58 #define UART_IRQ_ID UART1_IRQn
59 #define UART_DEVICE_ID 1
60 #define UART_BAUDRATE 57600
61 #endif
62 #define UART_EXTRA &max14906_uart_extra
63 #define UART_OPS &max_uart_ops
64 
65 #if (TARGET_NUM == 32690)
66 #define SPI_DEVICE_ID 4
67 #define SPI_CS 0
68 #elif (TARGET_NUM == 32665)
69 #define SPI_DEVICE_ID 1
70 #define SPI_CS 0
71 #endif
72 
73 #define SPI_BAUDRATE 100000
74 #define SPI_OPS &max_spi_ops
75 #define SPI_EXTRA &max14906_spi_extra
76 
79 
80 #ifdef BASIC_EXAMPLE
81 #define GPIO_OPS &max_gpio_ops
82 #define GPIO_EXTRA &max14906_gpio_extra_ip
83 #define GPIO_IRQ_OPS &max_gpio_irq_ops
84 #define GPIO_IRQ_EXTRA NULL
85 
86 extern struct max_gpio_init_param max14906_gpio_extra_ip;
87 #if (TARGET_NUM == 32665)
88 #define GPIO_FAULT_PORT_NUM 0
89 #define GPIO_FAULT_PIN_NUM 5
90 #define GPIO_IRQ_ID 0
91 #define NVIC_GPIO_IRQ GPIO0_IRQn
92 #elif (TARGET_NUM == 32690)
93 #define GPIO_FAULT_PORT_NUM 2
94 #define GPIO_FAULT_PIN_NUM 21
95 #define GPIO_IRQ_ID 2
96 #define NVIC_GPIO_IRQ GPIO2_IRQn
97 #endif
98 #endif
99 
100 #endif /* __PARAMETERS_H__ */
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:59
max14906_uart_extra
struct max_uart_init_param max14906_uart_extra
Definition: parameters.c:41
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:61
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:61
max14906_spi_extra
struct max_spi_init_param max14906_spi_extra
Definition: parameters.c:51