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