13 #ifndef APP_CONFIG_MBED_H_
14 #define APP_CONFIG_MBED_H_
23 #include "mbed_uart.h"
25 #include "mbed_gpio_irq.h"
28 #include "mbed_gpio.h"
36 #define SPI_CSB ARDUINO_UNO_D10
37 #define SPI_HOST_SDO ARDUINO_UNO_D11
38 #define SPI_HOST_SDI ARDUINO_UNO_D12
39 #define SPI_SCK ARDUINO_UNO_D13
42 #define PWM_TRIGGER ARDUINO_UNO_D3
43 #define INT_EVENT ARDUINO_UNO_D3
46 #define UART_TX CONSOLE_TX
47 #define UART_RX CONSOLE_RX
50 #define I2C_SCL ARDUINO_UNO_D15
51 #define I2C_SDA ARDUINO_UNO_D14
59 #define SAMPLING_RATE (62500)
60 #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
61 #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2)
struct mbed_gpio_init_param mbed_trigger_gpio_extra_init_params
Definition: app_config_mbed.c:61
struct mbed_pwm_init_param mbed_pwm_extra_init_params
Definition: app_config_mbed.c:69
struct mbed_gpio_irq_init_param mbed_trigger_gpio_irq_init_params
Definition: app_config_mbed.c:65
struct mbed_uart_init_param mbed_vcom_extra_init_params
Definition: app_config_mbed.c:42
struct mbed_uart_init_param mbed_uart_extra_init_params
Definition: app_config_mbed.c:31
struct mbed_spi_init_param mbed_spi_extra_init_params
Definition: app_config_mbed.c:54
struct mbed_i2c_init_param mbed_i2c_extra_init_params
Definition: app_config_mbed.c:69