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_gpio.h"
37#include "maxim_uart.h"
38#include "maxim_uart_stdio.h"
39
40#define UART_DEVICE_ID 0
41#define UART_BAUDRATE 115200
42#define UART_OPS &max_uart_ops
43#define UART_EXTRA &adg1736_uart_extra
44
46
47#define GPIO_OPS &max_gpio_ops
48#define GPIO_EXTRA &adg1736_gpio_extra
49
51
52/* Test configuration */
53#define TEST_SIDE 0 /* 0 = A side, 1 = B side */
54#define TEST_SWITCH 0 /* 0 = SW1, 1 = SW2 */
55
56/* ADG1736 control pins - IN1 and IN2 can use separate pins if needed */
57#define GPIO_IN1_PORT 1
58#define GPIO_IN1_PIN 6
59#define GPIO_IN2_PORT 2
60#define GPIO_IN2_PIN 0
61#define GPIO_EN_PORT 1
62#define GPIO_EN_PIN 7
63
64/* Test signal pins */
65#define GPIO_D_PORT 1
66#define GPIO_D_PIN 8
67#define GPIO_S_PORT 1
68#define GPIO_S_PIN 9
69
70/* LEDs (active-low) */
71#define LED_RED_PORT 0
72#define LED_RED_PIN 18
73#define LED_GREEN_PORT 0
74#define LED_GREEN_PIN 19
75
76#endif
struct max_uart_init_param adg1736_uart_extra
Definition parameters.c:35
struct max_gpio_init_param adg1736_gpio_extra
Definition parameters.c:39
GPIO platform specific init parameters.
Definition maxim_gpio.h:55
Aditional UART config parameters.
Definition maxim_uart.h:55