H753_CPP_W25Q_SPI_Flash_Read_Write_01 1.0
STM32H753 W25Q SPI 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 WQ25_CS_Pin   GPIO_PIN_6
 
#define WQ25_CS_GPIO_Port   GPIOB
 
#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.

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 66 of file main.h.

◆ REDIRECT_PRINTF

#define REDIRECT_PRINTF

Definition at line 67 of file main.h.

◆ WQ25_CS_GPIO_Port

#define WQ25_CS_GPIO_Port   GPIOB

Definition at line 60 of file main.h.

◆ WQ25_CS_Pin

#define WQ25_CS_Pin   GPIO_PIN_6

Definition at line 59 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 373 of file main.c.