precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions | Variables
app_config_stm32.h File Reference

Header file for STM32 platform configurations. More...

#include <stdint.h>
#include "stm32_uart.h"
#include "stm32_i2c.h"
#include "stm32_spi.h"
#include "stm32_gpio.h"
#include "stm32_irq.h"
#include "stm32_pwm.h"
#include "stm32_gpio_irq.h"
#include "app_config.h"
#include "stm32_usb_uart.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 HW_CARRIER_NAME   SDP_K1
 
#define APP_UART_HANDLE   &huart5
 
#define UART_IRQ_ID   UART5_IRQn
 
#define UART_ID   5
 
#define APP_UART_USB_HANDLE   hUsbDeviceHS
 
#define I2C_DEVICE_ID   1
 
#define I2C_TIMING   0
 
#define RESET_PIN   10
 
#define RESET_PORT   6
 
#define LDAC_PIN   12
 
#define LDAC_PORT   3
 
#define CLR_PIN   7
 
#define CLR_PORT   6
 
#define GPIO_TRIGGER_INT_PORT   3
 
#define SPI_DEVICE_ID   1
 
#define SPI_CSB   15
 
#define STM32_SPI_CS_PORT   0
 
#define TRIGGER_GPIO_IRQ_CTRL_ID   12
 
#define TRIGGER_INT_ID   12
 
#define trigger_gpio_handle   0
 
#define LDAC_GPIO_PRIORITY   1
 
#define MAX_SAMPLING_RATE   (71428)
 
#define LDAC_PWM_ID   4
 
#define LDAC_PWM_CHANNEL   1
 
#define LDAC_PWM_CLK_DIVIDER   2
 
#define LDAC_PWM_PRESCALER   3
 

Functions

void stm32_system_init (void)
 Initialize the STM32 system peripherals.
 

Variables

struct stm32_uart_init_param stm32_uart_extra_init_params
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
 
struct stm32_gpio_init_param stm32_gpio_ldac_init_params
 
struct stm32_gpio_init_param stm32_pwm_ldac_gpio_init_params
 
struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
 
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
 
struct stm32_spi_init_param stm32_spi_extra_init_params
 
struct stm32_pwm_init_param stm32_pwm_extra_init_params
 
struct stm32_gpio_init_param stm32_gpio_reset_init_params
 
struct stm32_gpio_init_param stm32_clear_gpio_init_params
 
UART_HandleTypeDef huart5
 
USBD_HandleTypeDef APP_UART_USB_HANDLE
 

Detailed Description

Header file for STM32 platform 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.

Macro Definition Documentation

◆ APP_UART_HANDLE

#define APP_UART_HANDLE   &huart5

◆ APP_UART_USB_HANDLE

#define APP_UART_USB_HANDLE   hUsbDeviceHS

◆ CLR_PIN

#define CLR_PIN   7

◆ CLR_PORT

#define CLR_PORT   6

◆ GPIO_TRIGGER_INT_PORT

#define GPIO_TRIGGER_INT_PORT   3

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   SDP_K1

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   1

◆ I2C_TIMING

#define I2C_TIMING   0

◆ LDAC_GPIO_PRIORITY

#define LDAC_GPIO_PRIORITY   1

◆ LDAC_PIN

#define LDAC_PIN   12

◆ LDAC_PORT

#define LDAC_PORT   3

◆ LDAC_PWM_CHANNEL

#define LDAC_PWM_CHANNEL   1

◆ LDAC_PWM_CLK_DIVIDER

#define LDAC_PWM_CLK_DIVIDER   2

◆ LDAC_PWM_ID

#define LDAC_PWM_ID   4

◆ LDAC_PWM_PRESCALER

#define LDAC_PWM_PRESCALER   3

◆ MAX_SAMPLING_RATE

#define MAX_SAMPLING_RATE   (71428)

◆ RESET_PIN

#define RESET_PIN   10

◆ RESET_PORT

#define RESET_PORT   6

◆ SPI_CSB

#define SPI_CSB   15

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ STM32_SPI_CS_PORT

#define STM32_SPI_CS_PORT   0

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ TRIGGER_GPIO_IRQ_CTRL_ID

#define TRIGGER_GPIO_IRQ_CTRL_ID   12

◆ TRIGGER_INT_ID

#define TRIGGER_INT_ID   12

◆ UART_ID

#define UART_ID   5

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART5_IRQn

Function Documentation

◆ stm32_system_init()

void stm32_system_init ( void  )
extern

Initialize the STM32 system peripherals.

Returns
None

Variable Documentation

◆ APP_UART_USB_HANDLE

USBD_HandleTypeDef APP_UART_USB_HANDLE
extern

◆ huart5

UART_HandleTypeDef huart5
extern

◆ stm32_clear_gpio_init_params

struct stm32_gpio_init_param stm32_clear_gpio_init_params
extern

◆ stm32_gpio_ldac_init_params

struct stm32_gpio_init_param stm32_gpio_ldac_init_params
extern

◆ stm32_gpio_reset_init_params

struct stm32_gpio_init_param stm32_gpio_reset_init_params
extern

◆ stm32_i2c_extra_init_params

struct stm32_i2c_init_param stm32_i2c_extra_init_params
extern

◆ stm32_pwm_extra_init_params

struct stm32_pwm_init_param stm32_pwm_extra_init_params
extern

◆ stm32_pwm_ldac_gpio_init_params

struct stm32_gpio_init_param stm32_pwm_ldac_gpio_init_params
extern

◆ stm32_spi_extra_init_params

struct stm32_spi_init_param stm32_spi_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

◆ stm32_vcom_extra_init_params

struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
extern