13#ifndef APP_CONFIG_STM32_H_ 
   14#define APP_CONFIG_STM32_H_ 
   21#include "stm32_uart.h" 
   24#include "stm32_gpio.h" 
   26#include "stm32_gpio_irq.h" 
   39#define STM32_SPI_CS_PORT       3    
   43#define GPIO_RESET_PIN          14   
   44#define GPIO_MODE0_PIN          0    
   45#define GPIO_MODE1_PIN          0    
   46#define GPIO_MODE2_PIN          0    
   47#define GPIO_MODE3_PIN          0    
   49#define GPIO_DCLK0_PIN          0    
   50#define GPIO_DCLK1_PIN          0    
   51#define GPIO_DCLK2_PIN          0    
   52#define GPIO_SYNC_IN_PIN        7    
   53#define GPIO_CONVST_SAR_PIN     6    
   54#define GPIO_DRDY_PIN               3   
   55#define GPIO_ERROR_LED          LED3_RED_Pin 
   58#define GPIO_RESET_PORT     6  
   59#define GPIO_MODE0_PORT     0  
   60#define GPIO_MODE1_PORT     0  
   61#define GPIO_MODE2_PORT     0  
   62#define GPIO_MODE3_PORT     0  
   63#define GPIO_DCLK0_PORT     0  
   64#define GPIO_DCLK1_PORT     0  
   65#define GPIO_DCLK2_PORT     0  
   66#define GPIO_SYNC_PORT      1  
   67#define GPIO_CONVST_PORT    3  
   68#define GPIO_DRDY_PORT      5  
   69#define GPIO_ERROR_LED_PORT     0  
   71#define GPIO_TRIGGER_INT_PORT   EXTI_GPIOF 
   73#define APP_UART_HANDLE     &huart3 
   74#define SAI_BASE            SAI1_Block_A 
   76#define IRQ_INT_ID          GPIO_DRDY_PIN 
   77#define UART_IRQ_ID         USART3_IRQn 
   78#define DMA_IRQ_ID          GPDMA1_Channel7_IRQn 
   79#define DRDY_IRQ_CTRL_ID    GPIO_DRDY_PIN 
   80#define UART_DEVICE_ID      0 
   81#define SPI_DEVICE_ID       STM32_SPI_ID 
   82#define I2C_DEVICE_ID       1  
   85#define MCLK_PWM_PRESCALER  1 
   86#define MCLK_PWM_CHANNEL    3  
   87#define MCLK_PWM_CLK_DIVIDER 2 
   88#define MCLK_PWM_HANDLE     htim1 
   93#define I2C_TIMING          0x00000E14 
   96#define PERIPH_INTR_PRE_EMPT_PRIORITY       7 
   97#define PERIPH_INTR_SUB_PRI_PRIORITY        3 
  100#define UART_PRE_EMPT_PRIORITY      2 
  101#define UART_SUB_PRI_PRIORITY       0 
  104#define TDM_DATA_SIZE           32 
  105#define TDM_SLOTS_PER_FRAME     8 
  106#define TDM_FS_ACTIVE_LENGTH    1 
  110#define TDM_N_SAMPLES_DMA_READ      800 
  111#define TDM_DMA_READ_SIZE           TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2 
  123#if (INTERFACE_MODE == TDM_MODE) 
  124#if defined (DEV_AD7770) 
  125#define AD777x_SAMPLING_FREQUENCY       32000 
  126#elif defined (DEV_AD7771) 
  127#define AD777x_SAMPLING_FREQUENCY       128000 
  129#define AD777x_SAMPLING_FREQUENCY       16000 
  132#define AD777x_SAMPLING_FREQUENCY       8000 
  157extern UART_HandleTypeDef 
huart3;
 
  158extern TIM_HandleTypeDef 
htim1;
 
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
Definition app_config_stm32.c:43
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:152
 
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:102
 
struct stm32_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:46
 
void MX_ICACHE_Init(void)
 
struct stm32_tdm_init_param stm32_tdm_extra_init_params
Definition app_config_stm32.c:52
 
void MX_LPUART1_UART_Init(void)
 
void SystemClock_Config(void)
 
bool data_capture_operation
Definition ad4134_iio.c:96
 
UART_HandleTypeDef huart3
 
HAL_StatusTypeDef HAL_Init(void)
 
struct stm32_gpio_init_param stm32_gpio_reset_extra_init_params
Definition app_config_stm32.c:82
 
struct stm32_pwm_init_param stm32_pwm_extra_init_params
Definition app_config_stm32.c:76
 
struct stm32_gpio_init_param stm32_gpio_drdy_extra_init_params
Definition app_config_stm32.c:106
 
void ad777x_dma_rx_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Complete Callback function.
Definition app_config_stm32.c:211
 
struct stm32_gpio_init_param stm32_gpio_mode0_extra_init_params
Definition app_config_stm32.c:61
 
struct stm32_gpio_init_param stm32_gpio_error_extra_init_params
Definition app_config_stm32.c:111
 
struct stm32_gpio_init_param stm32_gpio_mode3_extra_init_params
Definition app_config_stm32.c:76
 
struct stm32_gpio_init_param stm32_gpio_dclk1_extra_init_params
Definition app_config_stm32.c:86
 
struct stm32_gpio_init_param stm32_gpio_mode2_extra_init_params
Definition app_config_stm32.c:71
 
struct stm32_gpio_init_param stm32_gpio_sync_in_extra_init_params
Definition app_config_stm32.c:96
 
struct iio_device_data * ad777x_iio_dev_data
Definition ad777x_iio.c:299
 
struct stm32_gpio_init_param stm32_gpio_mode1_extra_init_params
Definition app_config_stm32.c:66
 
void ad777x_dma_rx_half_cplt(SAI_HandleTypeDef *hsai)
SAI DMA Receive Half Complete Callback function.
Definition app_config_stm32.c:196
 
struct stm32_gpio_init_param stm32_gpio_dclk2_extra_init_params
Definition app_config_stm32.c:91
 
struct stm32_gpio_init_param stm32_gpio_dclk0_extra_init_params
Definition app_config_stm32.c:81
 
struct stm32_gpio_init_param stm32_gpio_convst_sar_extra_init_params
Definition app_config_stm32.c:101
 
void ad777x_configure_intr_priority(void)
Configure the interrupt priorities.
Definition app_config_mbed.c:135
 
Configuration file of nanodac firmware example program.