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 <PinNames.h>
41 #include "mbed_uart.h"
42 #include "mbed_i2c.h"
43 #include "mbed_spi.h"
44 #include "no_os_uart.h"
45 
46 /******************************************************************************/
47 /********************** Macros and Constants Definitions **********************/
48 /******************************************************************************/
49 
50 #define UART_TX_PIN CONSOLE_TX
51 #define UART_RX_PIN CONSOLE_RX
52 #define UART_DEVICE_ID 0
53 #define UART_IRQ_ID 0
54 #define UART_BAUDRATE 115200
55 #define UART_EXTRA &ad5460_uart_extra_ip
56 #define UART_OPS &mbed_uart_ops
57 
58 /* I2C Pin mapping for Arduino interface */
59 #define I2C_SCL ARDUINO_UNO_D15
60 #define I2C_SDA ARDUINO_UNO_D14
61 #define I2C_DEVICE_ID 0
62 #define I2C_OPS &mbed_i2c_ops
63 
64 #define SPI_BAUDRATE 1000000
65 #define SPI_OPS &mbed_spi_ops
66 #define SPI_EXTRA &ad5460_spi_extra
67 #define SPI_DEVICE_ID 0
68 #define SPI_CS ARDUINO_UNO_D10
69 
73 
74 #endif /* __PARAMETERS_H__ */
ad5460_uart_extra_ip
struct mbed_uart_init_param ad5460_uart_extra_ip
Definition: parameters.c:42
mbed_uart.h
Header containing extra types required for UART interface.
ad5460_i2c_extra
struct mbed_i2c_init_param ad5460_i2c_extra
Definition: parameters.c:47
ad5460_spi_extra
struct mbed_spi_init_param ad5460_spi_extra
mbed_spi_init_param
Structure holding the SPI init parameters for mbed platform.
Definition: mbed_spi.h:63
mbed_spi.h
Header containing extra types required for SPI interface.
mbed_uart_init_param
Structure holding the UART init parameters for mbed platform.
Definition: mbed_uart.h:63
mbed_i2c_init_param
Structure holding the I2C init parameters for mbed platform.
Definition: mbed_i2c.h:63
no_os_uart.h
Header file of UART interface.
mbed_i2c.h
Header containing extra types required for I2C interface.