precision-converters-firmware
Macros | Functions | Variables
app_config_stm32.h File Reference

Header file for STM32 platform configurations. More...

#include "app_config.h"
#include "stm32_uart.h"
#include "stm32_spi.h"
#include "stm32_hal.h"
#include "stm32_tdm.h"
#include "stm32_gpio.h"
#include "stm32_i2c.h"
#include "stm32_gpio_irq.h"
Include dependency graph for app_config_stm32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STM32_SPI_ID   1
 
#define SPI_CSB   14
 
#define STM32_SPI_CS_PORT   3
 
#define DCLK_PIN   14
 
#define ODR_PIN   13
 
#define DOUT0_PIN   14
 
#define DOUT1_PIN   11
 
#define PDN_PIN   6
 
#define GPIO_TRIGGER_INT_PORT   4
 
#define PDN_PORT   1
 
#define STM32_UART_BASE   3
 
#define STM32_SAI_BASE   SAI1_Block_A
 
#define APP_UART_HANDLE   &huart3
 
#define TDM_DATA_SIZE   16
 
#define TDM_SLOTS_PER_FRAME   4
 
#define TDM_FS_ACTIVE_LENGTH   8
 
#define TDM_N_SAMPLES_DMA_READ   800
 
#define TDM_DMA_READ_SIZE   TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2
 
#define DCLK_PIN_MASK   0
 
#define ODR_PIN_MASK   0
 
#define DOUT0_PIN_MASK   0
 
#define DOUT1_PIN_MASK   0
 
#define DOUT1_IDR   0
 
#define PORTD_IDR   0
 
#define DCLK_IDR   0
 
#define DOUT0_IDR   0
 
#define UART_IRQ_ID   USART3_IRQn
 
#define UART_DEVICE_ID   0
 
#define SPI_DEVICE_ID   STM32_SPI_ID
 
#define trigger_gpio_handle   0
 
#define IRQ_INT_ID   ODR_PIN
 
#define DMA_IRQ_ID   GPDMA1_Channel7_IRQn
 
#define I2C_DEVICE_ID   1
 
#define I2C_TIMING   0x00000E14
 
#define SAMPLING_RATE   (500000)
 

Functions

void SystemClock_Config (void)
 
HAL_StatusTypeDef HAL_Init (void)
 
void MX_LPUART1_UART_Init (void)
 
void MX_SPI1_Init (void)
 
void MX_ICACHE_Init (void)
 
void MX_GPIO_Init (void)
 
void ad7134_dma_rx_cplt (SAI_HandleTypeDef *hsai)
 SAI DMA Receive Complete Callback function. More...
 
void ad7134_dma_rx_half_cplt (SAI_HandleTypeDef *hsai)
 SAI DMA Receive Half Complete Callback function. More...
 

Variables

struct stm32_uart_init_param stm32_uart_extra_init_params
 
struct stm32_spi_init_param stm32_spi_extra_init_params
 
struct stm32_tdm_init_param stm32_tdm_extra_init_params
 
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
 
struct stm32_gpio_init_param stm32_pdn_extra_init_params
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
 
UART_HandleTypeDef huart3
 
bool data_capture_operation
 
struct iio_device_data * ad7134_iio_dev_data
 

Detailed Description

Header file for STM32 platform configurations.

Copyright (c) 2021,2023-24 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ APP_UART_HANDLE

#define APP_UART_HANDLE   &huart3

◆ DCLK_IDR

#define DCLK_IDR   0

◆ DCLK_PIN

#define DCLK_PIN   14

◆ DCLK_PIN_MASK

#define DCLK_PIN_MASK   0

◆ DMA_IRQ_ID

#define DMA_IRQ_ID   GPDMA1_Channel7_IRQn

◆ DOUT0_IDR

#define DOUT0_IDR   0

◆ DOUT0_PIN

#define DOUT0_PIN   14

◆ DOUT0_PIN_MASK

#define DOUT0_PIN_MASK   0

◆ DOUT1_IDR

#define DOUT1_IDR   0

◆ DOUT1_PIN

#define DOUT1_PIN   11

◆ DOUT1_PIN_MASK

#define DOUT1_PIN_MASK   0

◆ GPIO_TRIGGER_INT_PORT

#define GPIO_TRIGGER_INT_PORT   4

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   1

◆ I2C_TIMING

#define I2C_TIMING   0x00000E14

◆ IRQ_INT_ID

#define IRQ_INT_ID   ODR_PIN

◆ ODR_PIN

#define ODR_PIN   13

◆ ODR_PIN_MASK

#define ODR_PIN_MASK   0

◆ PDN_PIN

#define PDN_PIN   6

◆ PDN_PORT

#define PDN_PORT   1

◆ PORTD_IDR

#define PORTD_IDR   0

◆ SAMPLING_RATE

#define SAMPLING_RATE   (500000)

◆ SPI_CSB

#define SPI_CSB   14

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   STM32_SPI_ID

◆ STM32_SAI_BASE

#define STM32_SAI_BASE   SAI1_Block_A

◆ STM32_SPI_CS_PORT

#define STM32_SPI_CS_PORT   3

◆ STM32_SPI_ID

#define STM32_SPI_ID   1

◆ STM32_UART_BASE

#define STM32_UART_BASE   3

◆ TDM_DATA_SIZE

#define TDM_DATA_SIZE   16

◆ TDM_DMA_READ_SIZE

#define TDM_DMA_READ_SIZE   TDM_N_SAMPLES_DMA_READ * TDM_SLOTS_PER_FRAME/2

◆ TDM_FS_ACTIVE_LENGTH

#define TDM_FS_ACTIVE_LENGTH   8

◆ TDM_N_SAMPLES_DMA_READ

#define TDM_N_SAMPLES_DMA_READ   800

◆ TDM_SLOTS_PER_FRAME

#define TDM_SLOTS_PER_FRAME   4

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   0

◆ UART_IRQ_ID

#define UART_IRQ_ID   USART3_IRQn

Function Documentation

◆ ad7134_dma_rx_cplt()

void ad7134_dma_rx_cplt ( SAI_HandleTypeDef *  hsai)

SAI DMA Receive Complete Callback function.

Parameters
hsai- pointer to a SAI_HandleTypeDef structure
Returns
None

◆ ad7134_dma_rx_half_cplt()

void ad7134_dma_rx_half_cplt ( SAI_HandleTypeDef *  hsai)

SAI DMA Receive Half Complete Callback function.

Parameters
hsai- pointer to a SAI_HandleTypeDef structure
Returns
None

◆ HAL_Init()

HAL_StatusTypeDef HAL_Init ( void  )
Here is the caller graph for this function:

◆ MX_GPIO_Init()

void MX_GPIO_Init ( void  )
Here is the caller graph for this function:

◆ MX_ICACHE_Init()

void MX_ICACHE_Init ( void  )
Here is the caller graph for this function:

◆ MX_LPUART1_UART_Init()

void MX_LPUART1_UART_Init ( void  )

◆ MX_SPI1_Init()

void MX_SPI1_Init ( void  )
Here is the caller graph for this function:

◆ SystemClock_Config()

void SystemClock_Config ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ ad7134_iio_dev_data

struct iio_device_data* ad7134_iio_dev_data
extern

◆ data_capture_operation

bool data_capture_operation
extern

◆ huart3

UART_HandleTypeDef huart3
extern

◆ stm32_i2c_extra_init_params

struct stm32_i2c_init_param stm32_i2c_extra_init_params
extern

◆ stm32_pdn_extra_init_params

struct stm32_gpio_init_param stm32_pdn_extra_init_params
extern

◆ stm32_spi_extra_init_params

struct stm32_spi_init_param stm32_spi_extra_init_params
extern

◆ stm32_tdm_extra_init_params

struct stm32_tdm_init_param stm32_tdm_extra_init_params
extern

◆ stm32_trigger_gpio_irq_init_params

struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
extern

◆ stm32_uart_extra_init_params

struct stm32_uart_init_param stm32_uart_extra_init_params
extern