H753_CPP_W25Q_QSPI_Flash_Read_Write_01 1.0
STM32H753 W25Q QSPI flash (Adafruit 5632/5633/5634) read/write tutorial
Loading...
Searching...
No Matches
main.h File Reference

: Header for main.c file. This file contains the common defines of the application. More...

#include "stm32h7xx_hal.h"

Go to the source code of this file.

Macros

#define STLINK_RX_Pin   GPIO_PIN_8
 
#define STLINK_RX_GPIO_Port   GPIOD
 
#define STLINK_TX_Pin   GPIO_PIN_9
 
#define STLINK_TX_GPIO_Port   GPIOD
 
#define Error_Handler()   _Error_Handler((const char *)__FILE__, __LINE__)
 
#define REDIRECT_PRINTF
 

Functions

void _Error_Handler (const char *file, int line)
 This function is executed in case of error occurrence.
 

Detailed Description

: Header for main.c file. This file contains the common defines of the application.

Project:
H753_CPP_W25Q_QSPI_Flash_Read_Write_01
Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file main.h.

Macro Definition Documentation

◆ Error_Handler

#define Error_Handler ( )    _Error_Handler((const char *)__FILE__, __LINE__)

Definition at line 70 of file main.h.

◆ REDIRECT_PRINTF

#define REDIRECT_PRINTF

Definition at line 71 of file main.h.

◆ STLINK_RX_GPIO_Port

#define STLINK_RX_GPIO_Port   GPIOD

Definition at line 62 of file main.h.

◆ STLINK_RX_Pin

#define STLINK_RX_Pin   GPIO_PIN_8

Definition at line 61 of file main.h.

◆ STLINK_TX_GPIO_Port

#define STLINK_TX_GPIO_Port   GPIOD

Definition at line 64 of file main.h.

◆ STLINK_TX_Pin

#define STLINK_TX_Pin   GPIO_PIN_9

Definition at line 63 of file main.h.

Function Documentation

◆ _Error_Handler()

void _Error_Handler ( const char * file,
int line )

This function is executed in case of error occurrence.

Parameters
fileThe file name as a string.
lineThe line number in the file.
Return values
None

Definition at line 367 of file main.c.