13 #ifndef APP_CONFIG_MBED_H_
14 #define APP_CONFIG_MBED_H_
23 #include "mbed_uart.h"
24 #include "mbed_gpio_irq.h"
27 #include "mbed_gpio.h"
35 #define SPI_CSB ARDUINO_UNO_D10
36 #define SPI_HOST_SDO ARDUINO_UNO_D11
37 #define SPI_HOST_SDI ARDUINO_UNO_D12
38 #define SPI_SCK ARDUINO_UNO_D13
40 #define I2C_SCL ARDUINO_UNO_D15
41 #define I2C_SDA ARDUINO_UNO_D14
43 #define UART_TX CONSOLE_TX
44 #define UART_RX CONSOLE_RX
46 #define DCLK_PIN ARDUINO_UNO_D2
47 #define ODR_PIN ARDUINO_UNO_D3
48 #define DOUT0_PIN ARDUINO_UNO_D4
49 #define DOUT1_PIN ARDUINO_UNO_D5
50 #define PDN_PIN ARDUINO_UNO_D1
62 #define DOUT1_IDR (*((volatile uint32_t *)0x40020010))
63 #define ODR_IDR (*((volatile uint32_t *)0x40020C10))
64 #define DCLK_IDR (*((volatile uint32_t *)0x40021810))
65 #define DOUT0_IDR (*((volatile uint32_t *)0x40021810))
67 #define DCLK_ODR (*((volatile uint32_t *)0x40021814))
70 #define DCLK_PIN_NUM 7
71 #define ODR_PIN_NUM 12
72 #define DOUT0_PIN_NUM 9
73 #define DOUT1_PIN_NUM 11
76 #define DCLK_PIN_MASK (uint32_t)(1 << DCLK_PIN_NUM)
77 #define ODR_PIN_MASK (uint32_t)(1 << ODR_PIN_NUM)
78 #define DOUT0_PIN_MASK (uint32_t)(1 << DOUT0_PIN_NUM)
79 #define DOUT1_PIN_MASK (uint32_t)(1 << DOUT1_PIN_NUM)
82 #define IRQ_INT_ID GPIO_IRQ_ID1
83 #define UART_DEVICE_ID 0
84 #define SPI_DEVICE_ID 0
85 #define I2C_DEVICE_ID 0
92 #define SAMPLING_RATE (12000)
99 #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
100 #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 40)
struct mbed_pwm_init_param mbed_pwm_extra_init_params
Definition: app_config_mbed.c:69
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
struct mbed_gpio_irq_init_param mbed_ext_int_extra_init_params
Definition: app_config_mbed.c:53
struct mbed_gpio_init_param mbed_pdn_extra_init_params
Definition: app_config_mbed.c:80
void ad7134_configure_intr_priority(void)
Configure the interrupt priorities.
Definition: app_config_mbed.c:95