Lazuli
Loading...
Searching...
No Matches
Macros
common_asm.h File Reference

Basic type definitions and useful macros usable in ASM source files. More...

Go to the source code of this file.

Macros

#define POSITION(X)   (1U << (X))
 Define a constant bit at position X, starting from index 0.
 

Detailed Description

Basic type definitions and useful macros usable in ASM source files.

This file describes basic type definitions and useful macros used in the Lazuli project, and that can be used directly in ASM source files.

Definition in file common_asm.h.

Macro Definition Documentation

◆ POSITION

#define POSITION (   X)    (1U << (X))

Define a constant bit at position X, starting from index 0.

Parameters
XAn unsigned integer constant representing the position of the bit, starting from index 0.
Warning
The constant must be specified using an unsigned integer litteral in uppercase. e.g. POSITION(2U) This is to make static analyzers not complain about using a shift operator with an unsigned value.

Definition at line 30 of file common_asm.h.