no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include <PinNames.h>
38#include "mbed_uart.h"
39#include "mbed_i2c.h"
40#include "mbed_spi.h"
41#include "no_os_uart.h"
42#include "no_os_gpio.h"
43#include "mbed_gpio.h"
44#include "no_os_irq.h"
45#include "mbed_irq.h"
46#include "mbed_gpio_irq.h"
47
48#define UART_TX_PIN CONSOLE_TX
49#define UART_RX_PIN CONSOLE_RX
50#define UART_DEVICE_ID 0
51#define UART_IRQ_ID 0
52#define UART_BAUDRATE 115200
53#define UART_EXTRA &ad74416h_uart_extra_ip
54#define UART_OPS &mbed_uart_ops
55
56/* I2C Pin mapping for Arduino interface */
57#define I2C_SCL ARDUINO_UNO_D15
58#define I2C_SDA ARDUINO_UNO_D14
59#define I2C_DEVICE_ID 0
60#define I2C_OPS &mbed_i2c_ops
61
62#define SPI_BAUDRATE 1000000
63#define SPI_OPS &mbed_spi_ops
64#define SPI_EXTRA &ad74416h_spi_extra
65#define SPI_DEVICE_ID 0
66#define SPI_CS ARDUINO_UNO_D10
67
68#define GPIO_OPS &mbed_gpio_ops
69#define GPIO_ADC_RDY ARDUINO_UNO_D2
70#define GPIO_EXTRA &ad74416h_gpio_extra
71
72#define GPIO_IRQ_ADC_ID 0
73#define GPIO_IRQ_OPS &mbed_gpio_irq_ops
74#define GPIO_IRQ_ADC_EXTRA &mbed_adc_rdy_gpio_irq_extra
75
83
84#endif /* __PARAMETERS_H__ */
struct mbed_gpio_irq_init_param mbed_adc_rdy_gpio_irq_extra
Definition parameters.c:74
struct no_os_irq_init_param adc_rdy_gpio_irq_ip
Definition parameters.c:63
struct mbed_gpio_init_param ad74416h_gpio_extra
Definition parameters.c:69
struct no_os_gpio_init_param adc_rdy_gpio_ip
Definition parameters.c:54
struct mbed_uart_init_param ad74416h_uart_extra_ip
Definition parameters.c:36
struct mbed_spi_init_param ad74416h_spi_extra
struct mbed_i2c_init_param ad74416h_i2c_extra
Definition parameters.c:41
Header containing extra types required for GPIO interface.
Header containing extra types required for GPIO IRQ drivers.
Header containing extra types required for I2C interface.
Header containing extra types required for IRQ drivers.
Header containing extra types required for SPI interface.
Header containing extra types required for UART interface.
Header file of GPIO Interface.
Header file of IRQ interface.
Header file of UART interface.
Structure holding the GPIO init parameters for mbed platform.
Definition mbed_gpio.h:55
Structure holding the extra parameters for GPIO Interrupt Request Example: struct mbed_irq_init_param...
Definition mbed_gpio_irq.h:78
Structure holding the I2C init parameters for mbed platform.
Definition mbed_i2c.h:55
Structure holding the SPI init parameters for mbed platform.
Definition mbed_spi.h:56
Structure holding the UART init parameters for mbed platform.
Definition mbed_uart.h:56
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101