LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Architecture Specific Definitions

Architecture specific definitions relating to specific processor architectures. More...

Macros

#define JTAG_DISABLE()
 
#define JTAG_DEBUG_POINT()   __asm__ __volatile__ ("nop" ::)
 
#define JTAG_DEBUG_BREAK()   __asm__ __volatile__ ("break" ::)
 
#define JTAG_ASSERT(Condition)   MACROS{ if (!(Condition)) { JTAG_DEBUG_BREAK(); } }MACROE
 
#define STDOUT_ASSERT(Condition)
 
#define pgm_read_ptr(Address)   (void*)pgm_read_word(Address)
 

Detailed Description

Architecture specific definitions relating to specific processor architectures.

Architecture specific macros, functions and other definitions, which relate to specific architectures. This definitions may or may not be available in some form on other architectures, and thus should be protected by preprocessor checks in portable code to prevent compile errors.

Macro Definition Documentation

#define JTAG_ASSERT (   Condition)    MACROS{ if (!(Condition)) { JTAG_DEBUG_BREAK(); } }MACROE

Definition at line 78 of file ArchitectureSpecific.h.

#define JTAG_DEBUG_BREAK ( )    __asm__ __volatile__ ("break" ::)

Definition at line 76 of file ArchitectureSpecific.h.

#define JTAG_DEBUG_POINT ( )    __asm__ __volatile__ ("nop" ::)

Definition at line 74 of file ArchitectureSpecific.h.

#define JTAG_DISABLE ( )
Value:
__asm__ __volatile__ ( \
"in __tmp_reg__,__SREG__" "\n\t" \
"cli" "\n\t" \
"out %1, %0" "\n\t" \
"out __SREG__, __tmp_reg__" "\n\t" \
"out %1, %0" "\n\t" \
: \
: "r" (1 << JTD), \
"M" (_SFR_IO_ADDR(MCUCR)) \
: "r0"); \

Definition at line 61 of file ArchitectureSpecific.h.

#define pgm_read_ptr (   Address)    (void*)pgm_read_word(Address)

Definition at line 85 of file ArchitectureSpecific.h.

#define STDOUT_ASSERT (   Condition)
Value:
MACROS{ if (!(x)) { printf_P(PSTR("%s: Function \"%s\", Line %d: " \
"Assertion \"%s\" failed.\r\n"), \
__FILE__, __func__, __LINE__, #Condition); } }MACROE

Definition at line 80 of file ArchitectureSpecific.h.