precision-converters-firmware
Loading...
Searching...
No Matches
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 OSR0_PIN   0
 
#define OSR0_PORT   0
 
#define OSR1_PIN   7
 
#define OSR1_PORT   6
 
#define OSR2_PIN   9
 
#define OSR2_PORT   6
 
#define RESET_PIN   11
 
#define RESET_PORT   0
 
#define CONVST_PIN   10
 
#define CONVST_PORT   0
 
#define BUSY_PIN   10
 
#define BUSY_PORT   6
 
#define RANGE_PIN   11
 
#define RANGE_PORT   6
 
#define STDBY_PIN   15
 
#define STDBY_PORT   1
 
#define LED_GPO   5
 
#define LED_PORT   10
 
#define TRIGGER_GPIO_PORT   3
 
#define PWM_TRIGGER   12
 
#define SPI_DEVICE_ID   1
 
#define SPI_CSB   15
 
#define SPI_CS_PORT   0
 
#define INT_EVENT   12
 
#define IRQ_INT_ID   12
 
#define trigger_gpio_handle   0
 
#define RDY_GPIO_PRIORITY   1
 
#define SAMPLING_RATE   (20000)
 
#define PWM_ID   4
 
#define PWM_CHANNEL   1
 
#define PWM_CLK_DIVIDER   2
 
#define PWM_PRESCALER   3
 
#define PWM_HANDLE   htim4
 

Functions

void stm32_system_init (void)
 Initialize the STM32 system peripherals.
 

Variables

UART_HandleTypeDef APP_UART_HANDLE
 
USBD_HandleTypeDef APP_UART_USB_HANDLE
 
TIM_HandleTypeDef PWM_HANDLE
 
struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
 
struct stm32_gpio_init_param stm32_trigger_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_reset_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_convst_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_busy_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_osr0_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_osr1_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_osr2_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_range_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_stdby_gpio_extra_init_params
 
struct stm32_gpio_init_param stm32_pwm_gpio_extra_init_params
 
struct stm32_pwm_init_param stm32_pwm_extra_init_params
 
struct stm32_uart_init_param stm32_uart_extra_init_params
 
struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
 
struct stm32_spi_init_param stm32_spi_extra_init_params
 
struct stm32_i2c_init_param stm32_i2c_extra_init_params
 

Detailed Description

Header file for STM32 platform configurations.

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

◆ BUSY_PIN

#define BUSY_PIN   10

◆ BUSY_PORT

#define BUSY_PORT   6

◆ CONVST_PIN

#define CONVST_PIN   10

◆ CONVST_PORT

#define CONVST_PORT   0

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   SDP_K1

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   1

◆ I2C_TIMING

#define I2C_TIMING   0

◆ INT_EVENT

#define INT_EVENT   12

◆ IRQ_INT_ID

#define IRQ_INT_ID   12

◆ LED_GPO

#define LED_GPO   5

◆ LED_PORT

#define LED_PORT   10

◆ OSR0_PIN

#define OSR0_PIN   0

◆ OSR0_PORT

#define OSR0_PORT   0

◆ OSR1_PIN

#define OSR1_PIN   7

◆ OSR1_PORT

#define OSR1_PORT   6

◆ OSR2_PIN

#define OSR2_PIN   9

◆ OSR2_PORT

#define OSR2_PORT   6

◆ PWM_CHANNEL

#define PWM_CHANNEL   1

◆ PWM_CLK_DIVIDER

#define PWM_CLK_DIVIDER   2

◆ PWM_HANDLE

#define PWM_HANDLE   htim4

◆ PWM_ID

#define PWM_ID   4

◆ PWM_PRESCALER

#define PWM_PRESCALER   3

◆ PWM_TRIGGER

#define PWM_TRIGGER   12

◆ RANGE_PIN

#define RANGE_PIN   11

◆ RANGE_PORT

#define RANGE_PORT   6

◆ RDY_GPIO_PRIORITY

#define RDY_GPIO_PRIORITY   1

◆ RESET_PIN

#define RESET_PIN   11

◆ RESET_PORT

#define RESET_PORT   0

◆ SAMPLING_RATE

#define SAMPLING_RATE   (20000)

◆ SPI_CS_PORT

#define SPI_CS_PORT   0

◆ SPI_CSB

#define SPI_CSB   15

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ STDBY_PIN

#define STDBY_PIN   15

◆ STDBY_PORT

#define STDBY_PORT   1

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ TRIGGER_GPIO_PORT

#define TRIGGER_GPIO_PORT   3

◆ 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_HANDLE

UART_HandleTypeDef APP_UART_HANDLE
extern

◆ APP_UART_USB_HANDLE

USBD_HandleTypeDef APP_UART_USB_HANDLE
extern

◆ PWM_HANDLE

TIM_HandleTypeDef PWM_HANDLE
extern

◆ stm32_busy_gpio_extra_init_params

struct stm32_gpio_init_param stm32_busy_gpio_extra_init_params
extern

◆ stm32_convst_gpio_extra_init_params

struct stm32_gpio_init_param stm32_convst_gpio_extra_init_params
extern

◆ stm32_i2c_extra_init_params

struct stm32_i2c_init_param stm32_i2c_extra_init_params
extern

◆ stm32_osr0_gpio_extra_init_params

struct stm32_gpio_init_param stm32_osr0_gpio_extra_init_params
extern

◆ stm32_osr1_gpio_extra_init_params

struct stm32_gpio_init_param stm32_osr1_gpio_extra_init_params
extern

◆ stm32_osr2_gpio_extra_init_params

struct stm32_gpio_init_param stm32_osr2_gpio_extra_init_params
extern

◆ stm32_pwm_extra_init_params

struct stm32_pwm_init_param stm32_pwm_extra_init_params
extern

◆ stm32_pwm_gpio_extra_init_params

struct stm32_gpio_init_param stm32_pwm_gpio_extra_init_params
extern

◆ stm32_range_gpio_extra_init_params

struct stm32_gpio_init_param stm32_range_gpio_extra_init_params
extern

◆ stm32_reset_gpio_extra_init_params

struct stm32_gpio_init_param stm32_reset_gpio_extra_init_params
extern

◆ stm32_spi_extra_init_params

struct stm32_spi_init_param stm32_spi_extra_init_params
extern

◆ stm32_stdby_gpio_extra_init_params

struct stm32_gpio_init_param stm32_stdby_gpio_extra_init_params
extern

◆ stm32_trigger_gpio_extra_init_params

struct stm32_gpio_init_param stm32_trigger_gpio_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