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