STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
Compiler standard macros

This file contains the compiler standard macros. More...

+ Collaboration diagram for Compiler standard macros:

Macros

#define CONST   const
 Declare a standard constant variable with the specified type. More...
 
#define STATIC   static
 Declare a standard static variable/function. More...
 
#define VOLATILE   volatile
 Declare a standard volatile variable. More...
 
#define P2VAR(ptrtype)   ptrtype *
 Declare a pointer-to-variable with the specified type. More...
 
#define P2CONST(ptrtype)   CONST ptrtype *
 Declare a constant pointer-to-variable with the specified type. More...
 
#define CONSTP2VAR(ptrtype)   ptrtype *CONST
 Declare a pointer-to-variable constant with the specified type. More...
 
#define CONSTP2CONST(ptrtype)   CONST ptrtype *CONST
 Declare a constant pointer-to-variable constant with the specified type. More...
 
#define P2FUNC(rettype, fctname)   rettype(*fctname)
 Declare a pointer-to-function with the specified return type. More...
 

Detailed Description

This file contains the compiler standard macros.

Macro Definition Documentation

◆ CONST

#define CONST   const

#include <LIB/LSTD_COMPILER.h>

Declare a standard constant variable with the specified type.

◆ STATIC

#define STATIC   static

#include <LIB/LSTD_COMPILER.h>

Declare a standard static variable/function.

◆ VOLATILE

#define VOLATILE   volatile

#include <LIB/LSTD_COMPILER.h>

Declare a standard volatile variable.

◆ P2VAR

#define P2VAR (   ptrtype)    ptrtype *

#include <LIB/LSTD_COMPILER.h>

Declare a pointer-to-variable with the specified type.

Parameters
[in]ptrtypeThe type of the pointer

◆ P2CONST

#define P2CONST (   ptrtype)    CONST ptrtype *

#include <LIB/LSTD_COMPILER.h>

Declare a constant pointer-to-variable with the specified type.

Parameters
[in]ptrtypeThe type of the pointer

◆ CONSTP2VAR

#define CONSTP2VAR (   ptrtype)    ptrtype *CONST

#include <LIB/LSTD_COMPILER.h>

Declare a pointer-to-variable constant with the specified type.

Parameters
[in]ptrtypeThe type of the pointer

◆ CONSTP2CONST

#define CONSTP2CONST (   ptrtype)    CONST ptrtype *CONST

#include <LIB/LSTD_COMPILER.h>

Declare a constant pointer-to-variable constant with the specified type.

Parameters
[in]ptrtypeThe type of the pointer

◆ P2FUNC

#define P2FUNC (   rettype,
  fctname 
)    rettype(*fctname)

#include <LIB/LSTD_COMPILER.h>

Declare a pointer-to-function with the specified return type.

Parameters
[in]rettypeThe return type of the function
[in]fctnameThe name of the function