13 #ifndef APP_CONFIG_MBED_H_
14 #define APP_CONFIG_MBED_H_
24 #include "mbed_gpio.h"
25 #include "mbed_gpio_irq.h"
27 #include "mbed_uart.h"
34 #define SPI_CS_PIN_NUM ARDUINO_UNO_D10
35 #define SPI_HOST_SDO ARDUINO_UNO_D11
36 #define SPI_HOST_SDI ARDUINO_UNO_D12
37 #define SPI_SCK ARDUINO_UNO_D13
39 #define CNV_PIN ARDUINO_UNO_D6
40 #define RESET_PIN ARDUINO_UNO_D1
41 #define GP0_PIN ARDUINO_UNO_D9
42 #define GP1_PIN ARDUINO_UNO_D8
45 #define PWM_TRIGGER ARDUINO_UNO_D6
47 #define trigger_gpio_handle 0
48 #define TRIGGER_GPIO_PORT 0
49 #define TRIGGER_GPIO_PIN PWM_TRIGGER
52 #define TRIGGER_INT_ID 0
56 #define SPI_DEVICE_ID 0
57 #define CNV_PIN_NUM ARDUINO_UNO_D6
58 #define CNV_PORT_NUM 0
59 #define GP0_PIN_NUM ARDUINO_UNO_D9
60 #define GP0_PORT_NUM 0
61 #define GP1_PIN_NUM ARDUINO_UNO_D8
62 #define GP1_PORT_NUM 0
65 #define UART_TX CONSOLE_TX
66 #define UART_RX CONSOLE_RX
68 #define I2C_SCL ARDUINO_UNO_D15
69 #define I2C_SDA ARDUINO_UNO_D14
72 #define uart_extra_init_params mbed_uart_extra_init_params
73 #define vcom_extra_init_params mbed_vcom_extra_init_params
74 #define spi_extra_init_params mbed_spi_extra_init_params
75 #define i2c_extra_init_params mbed_i2c_extra_init_params
76 #define pwm_extra_init_params mbed_pwm_extra_init_params
77 #define cnv_extra_init_params mbed_gpio_cnv_extra_init_params
78 #define gp0_extra_init_params mbed_gpio_gp0_extra_init_params
79 #define gp1_extra_init_params mbed_gpio_gp1_extra_init_params
80 #define trigger_gpio_irq_extra_params mbed_trigger_gpio_irq_init_params
83 #define gpio_ops mbed_gpio_ops
84 #define spi_ops mbed_spi_ops
85 #define i2c_ops mbed_i2c_ops
86 #define uart_ops mbed_uart_ops
87 #define pwm_ops mbed_pwm_ops
88 #define vcom_ops mbed_virtual_com_ops
89 #define trigger_gpio_irq_ops mbed_gpio_irq_ops
91 #define MAX_SPI_SCLK 22500000
99 #define SAMPLING_RATE (62500)
100 #define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
101 #define CONV_TRIGGER_DUTY_CYCLE_NSEC(x) (x / 10)
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_gpio_init_param mbed_gpio_gp1_extra_init_params
Definition: app_config_mbed.c:85
struct mbed_gpio_init_param mbed_gpio_cnv_extra_init_params
Definition: app_config_mbed.c:75
struct mbed_gpio_init_param mbed_gpio_gp0_extra_init_params
Definition: app_config_mbed.c:80
struct mbed_i2c_init_param mbed_i2c_extra_init_params
Definition: app_config_mbed.c:69