13#ifndef APP_CONFIG_STM32_H_
14#define APP_CONFIG_STM32_H_
21#include "stm32_uart.h"
25#include "stm32_gpio.h"
27#include "stm32_gpio_irq.h"
36#define STM32_SPI_CS_PORT 3
44#define GPIO_TRIGGER_INT_PORT 4
48#define STM32_UART_BASE 3
51#define STM32_SAI_BASE SAI1_Block_A
53#define APP_UART_HANDLE &huart3
56#define TDM_DATA_SIZE 16
57#define TDM_SLOTS_PER_FRAME 4
58#define TDM_FS_ACTIVE_LENGTH 8
62#define TDM_N_SAMPLES_DMA_READ 800
63#define TDM_DMA_READ_SIZE TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2
66#define DCLK_PIN_MASK 0
68#define DOUT0_PIN_MASK 0
69#define DOUT1_PIN_MASK 0
76#define UART_IRQ_ID USART3_IRQn
77#define UART_DEVICE_ID 0
78#define SPI_DEVICE_ID STM32_SPI_ID
79#define trigger_gpio_handle 0
80#define IRQ_INT_ID ODR_PIN
81#define DMA_IRQ_ID GPDMA1_Channel7_IRQn
82#define I2C_DEVICE_ID 1
87#define I2C_TIMING 0x00000E14
94#define SAMPLING_RATE (500000)
106extern UART_HandleTypeDef
huart3;
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
Definition app_config_stm32.c:43
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:51
struct stm32_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:61
struct stm32_tdm_init_param stm32_tdm_extra_init_params
Definition app_config_stm32.c:87
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:99
bool data_capture_operation
Definition ad4170_iio.c:337
UART_HandleTypeDef huart3
void MX_ICACHE_Init(void)
void MX_LPUART1_UART_Init(void)
void ad7134_dma_rx_half_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Half Complete Callback function.
Definition app_config_stm32.c:100
void SystemClock_Config(void)
struct iio_device_data * ad7134_iio_dev_data
Definition ad7134_iio.c:89
struct stm32_gpio_init_param stm32_pdn_extra_init_params
Definition app_config_stm32.c:62
HAL_StatusTypeDef HAL_Init(void)
void ad7134_dma_rx_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Complete Callback function.
Definition app_config_stm32.c:115
Configuration file of nanodac firmware example program.