LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Common.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stddef.h>
#include "../LPCUSBlibConfig.h"
#include "ArchitectureSpecific.h"
#include "CompilerSpecific.h"
#include "Architectures.h"
#include "Attributes.h"
#include "BoardTypes.h"

Go to the source code of this file.

Macros

#define MACROS   do
 
#define MACROE   while (0)
 
#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 ISR(Name,...)   void Name (void) __attribute__((__interrupt__)) __VA_ARGS__; void Name (void)
 

Typedefs

typedef MACHINE_REG_t uint_reg_t
 

Functions

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