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_uart.h"
39#include "maxim_uart_stdio.h"
40
41#if (TARGET_NUM == 32690)
42#define UART_IRQ_ID UART0_IRQn
43#define UART_DEVICE_ID 0
44#define UART_BAUDRATE 57600
45#elif (TARGET_NUM == 32665)
46#define UART_IRQ_ID UART1_IRQn
47#define UART_DEVICE_ID 1
48#define UART_BAUDRATE 57600
49#endif
50
51#define UART_EXTRA &max22190_uart_extra
52#define UART_OPS &max_uart_ops
53
54#if (TARGET_NUM == 32690)
55#define SPI_DEVICE_ID 4
56#define SPI_CS 0
57#elif (TARGET_NUM == 32665)
58#define SPI_DEVICE_ID 1
59#define SPI_CS 0
60#endif
61
62#define SPI_BAUDRATE 100000
63#define SPI_OPS &max_spi_ops
64#define SPI_EXTRA &max22190_spi_extra
65
68
69#endif /* __PARAMATERS_H__ */
struct max_spi_init_param max22190_spi_extra
Definition parameters.c:39
struct max_uart_init_param max22190_uart_extra
Definition parameters.c:35
Maxim specific SPI initialization parameters.
Definition maxim_spi.h:53
Aditional UART config parameters.
Definition maxim_uart.h:55