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_usb_uart.h"
#include "stm32_spi.h"
#include "stm32_gpio.h"
#include "stm32_i2c.h"
#include "usb_device.h"
#include "app_config.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   0
 
#define I2C_ID   1
 
#define APP_UART_USB_HANDLE   hUsbDeviceHS
 
#define APP_UART_USB_IRQ   OTG_HS_IRQn
 
#define SPI_DEVICE_ID   1
 
#define SPI_CSB   15
 
#define STM32_SPI_CS_PORT   0
 
#define RESET_GPIO_PORT   6
 
#define RESET_GPIO_PIN   11
 
#define LRDAC_GPIO_PORT   6
 
#define LRDAC_GPIO_PIN   9
 
#define WP_GPIO_PORT   6
 
#define WP_GPIO_PIN   10
 
#define DIS_GPIO_PORT   6
 
#define DIS_GPIO_PIN   7
 
#define INDEP_GPIO_PORT   0
 
#define INDEP_GPIO_PIN   11
 
#define spi_extra_init_params   stm32_spi_init_params
 
#define uart_extra_init_params   stm32_uart_init_params
 
#define vcom_extra_init_params   stm32_vcom_extra_init_params
 
#define reset_gpio_extra_init_params   stm32_reset_gpio_init_params
 
#define wp_gpio_extra_init_params   stm32_wp_gpio_init_params
 
#define lrdac_gpio_extra_init_params   stm32_lrdac_gpio_init_params
 
#define dis_gpio_extra_init_params   stm32_dis_gpio_init_params
 
#define indep_gpio_extra_init_params   stm32_indep_gpio_init_params
 
#define irq_platform_ops   stm32_gpio_irq_ops
 
#define gpio_ops   stm32_gpio_ops
 
#define spi_ops   stm32_spi_ops
 
#define i2c_ops   stm32_i2c_ops
 
#define uart_ops   stm32_uart_ops
 
#define vcom_ops   stm32_usb_uart_ops
 

Functions

void stm32_system_init (void)
 Initialize the STM32 system peripherals.
 
void SystemClock_Config (void)
 

Variables

struct stm32_uart_init_param stm32_uart_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_init_params
 
struct stm32_gpio_init_param stm32_reset_gpio_init_params
 
struct stm32_gpio_init_param stm32_wp_gpio_init_params
 
struct stm32_gpio_init_param stm32_lrdac_gpio_init_params
 
struct stm32_gpio_init_param stm32_dis_gpio_init_params
 
struct stm32_gpio_init_param stm32_indep_gpio_init_params
 
UART_HandleTypeDef huart5
 
SPI_HandleTypeDef hspi1
 
USBD_HandleTypeDef hUsbDeviceHS
 

Detailed Description

Header file for STM32 platform configurations.

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

◆ APP_UART_USB_IRQ

#define APP_UART_USB_IRQ   OTG_HS_IRQn

◆ dis_gpio_extra_init_params

#define dis_gpio_extra_init_params   stm32_dis_gpio_init_params

◆ DIS_GPIO_PIN

#define DIS_GPIO_PIN   7

◆ DIS_GPIO_PORT

#define DIS_GPIO_PORT   6

◆ gpio_ops

#define gpio_ops   stm32_gpio_ops

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   SDP_K1

◆ I2C_ID

#define I2C_ID   1

◆ i2c_ops

#define i2c_ops   stm32_i2c_ops

◆ indep_gpio_extra_init_params

#define indep_gpio_extra_init_params   stm32_indep_gpio_init_params

◆ INDEP_GPIO_PIN

#define INDEP_GPIO_PIN   11

◆ INDEP_GPIO_PORT

#define INDEP_GPIO_PORT   0

◆ irq_platform_ops

#define irq_platform_ops   stm32_gpio_irq_ops

◆ lrdac_gpio_extra_init_params

#define lrdac_gpio_extra_init_params   stm32_lrdac_gpio_init_params

◆ LRDAC_GPIO_PIN

#define LRDAC_GPIO_PIN   9

◆ LRDAC_GPIO_PORT

#define LRDAC_GPIO_PORT   6

◆ reset_gpio_extra_init_params

#define reset_gpio_extra_init_params   stm32_reset_gpio_init_params

◆ RESET_GPIO_PIN

#define RESET_GPIO_PIN   11

◆ RESET_GPIO_PORT

#define RESET_GPIO_PORT   6

◆ SPI_CSB

#define SPI_CSB   15

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ spi_extra_init_params

#define spi_extra_init_params   stm32_spi_init_params

◆ spi_ops

#define spi_ops   stm32_spi_ops

◆ STM32_SPI_CS_PORT

#define STM32_SPI_CS_PORT   0

◆ uart_extra_init_params

#define uart_extra_init_params   stm32_uart_init_params

◆ UART_ID

#define UART_ID   0

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART5_IRQn

◆ uart_ops

#define uart_ops   stm32_uart_ops

◆ vcom_extra_init_params

#define vcom_extra_init_params   stm32_vcom_extra_init_params

◆ vcom_ops

#define vcom_ops   stm32_usb_uart_ops

◆ wp_gpio_extra_init_params

#define wp_gpio_extra_init_params   stm32_wp_gpio_init_params

◆ WP_GPIO_PIN

#define WP_GPIO_PIN   10

◆ WP_GPIO_PORT

#define WP_GPIO_PORT   6

Function Documentation

◆ stm32_system_init()

void stm32_system_init ( void  )

Initialize the STM32 system peripherals.

Returns
None

◆ SystemClock_Config()

void SystemClock_Config ( void  )
extern

Variable Documentation

◆ hspi1

SPI_HandleTypeDef hspi1
extern

◆ huart5

UART_HandleTypeDef huart5
extern

◆ hUsbDeviceHS

USBD_HandleTypeDef hUsbDeviceHS
extern

◆ stm32_dis_gpio_init_params

struct stm32_gpio_init_param stm32_dis_gpio_init_params
extern

◆ stm32_indep_gpio_init_params

struct stm32_gpio_init_param stm32_indep_gpio_init_params
extern

◆ stm32_lrdac_gpio_init_params

struct stm32_gpio_init_param stm32_lrdac_gpio_init_params
extern

◆ stm32_reset_gpio_init_params

struct stm32_gpio_init_param stm32_reset_gpio_init_params
extern

◆ stm32_spi_init_params

struct stm32_spi_init_param stm32_spi_init_params
extern

◆ stm32_trigger_gpio_irq_init_params

struct stm32_gpio_irq_init_param stm32_trigger_gpio_irq_init_params
extern

◆ stm32_uart_init_params

struct stm32_uart_init_param stm32_uart_init_params
extern

◆ stm32_vcom_extra_init_params

struct stm32_usb_uart_init_param stm32_vcom_extra_init_params
extern

◆ stm32_wp_gpio_init_params

struct stm32_gpio_init_param stm32_wp_gpio_init_params
extern