precision-converters-firmware
Functions | Variables
app_config_stm32.c File Reference

STM32 Specific configuration files for AD7124 IIO Application. More...

#include "no_os_error.h"
#include "app_config_stm32.h"
Include dependency graph for app_config_stm32.c:

Functions

uint32_t HAL_RCC_GetSysClockFreq_app ()
 Return the peripheral frequency. More...
 
void stm32_system_init (void)
 Initialize the STM32 system peripherals. More...
 

Variables

struct stm32_uart_init_param stm32_uart_extra_init_params
 
struct stm32_spi_init_param stm32_spi_extra_init_params
 
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
 

Detailed Description

STM32 Specific configuration files for AD7124 IIO Application.

This module contains the STM32 platform specific configurations

Copyright (c) 2024 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.

Function Documentation

◆ HAL_RCC_GetSysClockFreq_app()

uint32_t HAL_RCC_GetSysClockFreq_app ( )

Return the peripheral frequency.

Returns
Peripheral frequency in Hz

◆ stm32_system_init()

void stm32_system_init ( void  )

Initialize the STM32 system peripherals.

Returns
None

Variable Documentation

◆ stm32_i2c_extra_init_params

struct stm32_i2c_init_param stm32_i2c_extra_init_params
Initial value:
= {
.i2c_timing = I2C_TIMING
}
#define I2C_TIMING
Definition: app_config_stm32.h:116

◆ stm32_spi_extra_init_params

struct stm32_spi_init_param stm32_spi_extra_init_params
Initial value:
= {
.chip_select_port = SPI_CS_PORT,
.get_input_clock = HAL_RCC_GetSysClockFreq_app
}
uint32_t HAL_RCC_GetSysClockFreq_app()
Return the peripheral frequency.
Definition: app_config_stm32.c:38
#define SPI_CS_PORT
Definition: app_config_mbed.h:70

◆ stm32_trigger_gpio_irq_init_params

struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
Initial value:
= {
.port_nb = RDY_PORT
}
#define RDY_PORT
Definition: app_config_mbed.h:68

◆ stm32_uart_extra_init_params

struct stm32_uart_init_param stm32_uart_extra_init_params
Initial value:
= {
.huart = APP_UART_HANDLE
}
#define APP_UART_HANDLE
Definition: app_config_stm32.h:39