no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "maxim_irq.h"
41 #include "maxim_spi.h"
42 #include "maxim_gpio.h"
43 #include "maxim_uart.h"
44 #include "maxim_uart_stdio.h"
45 
46 /******************************************************************************/
47 /********************** Macros and Constants Definitions **********************/
48 /******************************************************************************/
49 #define UART_OPS &max_uart_ops
50 #define UART_EXTRA &max11205_uart_extra_ip
52 
53 #define INTC_DEVICE_ID 0
54 #define UART_DEVICE_ID 0
55 #define UART_BAUDRATE 57600
56 #define UART_IRQ_ID UART0_IRQn
57 
58 #define MAX11205_VREF_MV 3300
59 
60 #define SPI_DEVICE_ID 0
61 #define SPI_BAUDRATE 5000000
62 #define SPI_CS 0
63 #define SPI_OPS &max_spi_ops
64 #define SPI_EXTRA &max11205_spi_extra_ip
65 
66 #define GPIO_OPS &max_gpio_ops
67 #define GPIO_EXTRA &max11205_gpio_extra_ip
68 #if (TARGET_NUM != 32655)
69 #error PIN and PORT configuration have to be adapted for the used target.
70 #else
71 #define GPIO_SYNC_PIN_NUM 6
72 #define GPIO_SYNC_PORT_NUM 1
73 #endif
74 
75 #define GPIO_IRQ_OPS &max_gpio_irq_ops
76 #define GPIO_CTRL_IRQ_ID 1 /* For PORT1 */
77 #define GPIO_IRQ_EXTRA &max11205_gpio_extra_ip
78 #define NVIC_GPIO_IRQ GPIO1_IRQn /* For PORT1 */
79 
82 
83 #endif /* __PARAMETERS_H__ */
max11205_gpio_extra_ip
struct max_gpio_init_param max11205_gpio_extra_ip
Definition: parameters.c:46
max11205_spi_extra_ip
struct max_spi_init_param max11205_spi_extra_ip
Definition: parameters.c:50
max_spi_init_param
Maxim specific SPI initialization parameters.
Definition: maxim_spi.h:53
max_uart_init_param
Aditional UART config parameters.
Definition: maxim_uart.h:55
max11205_uart_extra_ip
struct max_uart_init_param max11205_uart_extra_ip
Definition: parameters.c:42
max_gpio_init_param
GPIO platform specific init parameters.
Definition: maxim_gpio.h:55