| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
Common.h File Reference

Common library convenience headers, macros and functions. More...

`#include <stdint.h>`
`#include <stdbool.h>`
`#include <string.h>`
`#include <stddef.h>`
`#include "Architectures.h"`
`#include "BoardTypes.h"`
`#include "ArchitectureSpecific.h"`
`#include "CompilerSpecific.h"`
`#include "Attributes.h"`
`#include "LUFAConfig.h"`

## Macros
#define | CONCAT(x, y) x ## y
#define | CONCAT_EXPANDED(x, y) CONCAT(x, y)
#define | ISR(Name,...) void Name (void) __attribute__((__interrupt__)) __VA_ARGS__; void Name (void)
#define | MACROE while (0)
#define | MACROS do
#define | MAX(x, y) (((x) > (y)) ? (x) : (y))
#define | MIN(x, y) (((x) < (y)) ? (x) : (y))
#define | STRINGIFY(x) #x
#define | STRINGIFY_EXPANDED(x) STRINGIFY(x)
#define | USE_LUFA_CONFIG_HEADER

## Typedefs
typedef MACHINE_REG_t | uint_reg_t

## Functions
static uint8_t | BitReverse (uint8_t Byte) ATTR_WARN_UNUSED_RESULT ATTR_CONST
static void | Delay_MS (uint16_t Milliseconds) ATTR_ALWAYS_INLINE
static uint_reg_t | GetGlobalInterruptMask (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
static void | GlobalInterruptDisable (void) ATTR_ALWAYS_INLINE
static void | GlobalInterruptEnable (void) ATTR_ALWAYS_INLINE
static void | SetGlobalInterruptMask (const uint_reg_t GlobalIntState) ATTR_ALWAYS_INLINE

## Detailed Description

Common utility headers containing macros, functions, enums and types which are common to all aspects of the library.