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 "stm32_spi.h"
#include "stm32_uart.h"
#include "stm32_irq.h"
#include "stm32_uart_stdio.h"
#include "main.h"
#include "stm32_gpio.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 SPI_DEVICE_ID   1
 
#define SPI_CS_PORT   0
 
#define SPI_CSB   15
 
#define APP_UART_HANDLE   &huart5
 
#define UART_IRQ_ID   UART5_IRQn
 
#define LED_GREEN   5
 
#define LED_PORT   10
 
#define MAX_SPI_CLK   5625000
 
#define spi_ops   stm32_spi_ops
 
#define uart_ops   stm32_uart_ops
 
#define gpio_ops   stm32_gpio_ops
 

Functions

void stm32_system_init (void)
 Initialize the STM32 system peripherals.
 
int32_t check_escape_key_pressed ()
 Determines if the Escape key was pressed.
 

Variables

struct no_os_uart_desc * uart_desc
 
UART_HandleTypeDef huart5
 
struct stm32_uart_init_param stm32_uart_extra_init_params
 
struct stm32_spi_init_param stm32_spi_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

◆ gpio_ops

#define gpio_ops   stm32_gpio_ops

◆ LED_GREEN

#define LED_GREEN   5

◆ LED_PORT

#define LED_PORT   10

◆ MAX_SPI_CLK

#define MAX_SPI_CLK   5625000

◆ SPI_CS_PORT

#define SPI_CS_PORT   0

◆ SPI_CSB

#define SPI_CSB   15

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ spi_ops

#define spi_ops   stm32_spi_ops

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART5_IRQn

◆ uart_ops

#define uart_ops   stm32_uart_ops

Function Documentation

◆ check_escape_key_pressed()

int32_t check_escape_key_pressed ( )
extern

Determines if the Escape key was pressed.

Returns
key press status

◆ stm32_system_init()

void stm32_system_init ( void  )
extern

Initialize the STM32 system peripherals.

Returns
None

Variable Documentation

◆ huart5

UART_HandleTypeDef huart5
extern

◆ stm32_spi_extra_init_params

struct stm32_spi_init_param stm32_spi_extra_init_params
extern

◆ stm32_uart_extra_init_params

struct stm32_uart_init_param stm32_uart_extra_init_params
extern

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern