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_uart.h"
40 #include "maxim_uart_stdio.h"
41 
42 #ifdef IIO_SUPPORT
43 #define INTC_DEVICE_ID 0
44 #endif
45 
46 #if (TARGET_NUM == 32690)
47 #define UART_IRQ_ID UART0_IRQn
48 #define UART_DEVICE_ID 0
49 
50 #define SPI_DEVICE_ID 4
51 
52 #define GPIO_RSTB_PORT_NUM 1
53 #define GPIO_RSTB_PIN_NUM 6
54 #elif (TARGET_NUM == 32665)
55 #define UART_IRQ_ID UART1_IRQn
56 #define UART_DEVICE_ID 1
57 
58 #define SPI_DEVICE_ID 1
59 
60 #define GPIO_RSTB_PORT_NUM 0
61 #define GPIO_RSTB_PIN_NUM 5
62 #endif
63 
64 #define UART_BAUDRATE 57600
65 #define UART_EXTRA &max22017_uart_extra
66 #define UART_OPS &max_uart_ops
67 
68 #define SPI_CS 0
69 #define SPI_BAUDRATE 100000
70 #define SPI_OPS &max_spi_ops
71 #define SPI_EXTRA &max22017_spi_extra
72 
73 #define GPIO_OPS &max_gpio_ops
74 #define GPIO_EXTRA &max22017_gpio_extra_ip
75 
79 
80 #endif /* __PARAMATERS_H__ */
max22017_gpio_extra_ip
struct max_gpio_init_param max22017_gpio_extra_ip
Definition: parameters.c:35
max22017_uart_extra
struct max_uart_init_param max22017_uart_extra
Definition: parameters.c:39
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
max22017_spi_extra
struct max_spi_init_param max22017_spi_extra
Definition: parameters.c:43
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