mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Refine the preprocessor conditional guard style (#190)
This commit is contained in:
@@ -204,5 +204,5 @@ uintptr_t sys_call5(unsigned int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_INCLUDE_MINERVA_SYSCALL_H */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_INCLUDE_MINERVA_SYSCALL_H */
|
||||
|
||||
@@ -90,5 +90,5 @@ typedef unsigned int irqstate_t;
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_INCLUDE_MINERVA_TYPES_H */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_INCLUDE_MINERVA_TYPES_H */
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ARCH_MISOC_SRC_LM32_CHIP_H
|
||||
#define __ARCH_MISOC_SRC_LM32_CHIP_H 1
|
||||
#define __ARCH_MISOC_SRC_LM32_CHIP_H
|
||||
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
|
||||
@@ -105,7 +105,7 @@ static void dispatch_syscall(void)
|
||||
# error "Missing logic"
|
||||
|
||||
/* Refer to arch/arm/src/armv7-m/up_svcall.h for how this is done for ARM */
|
||||
/* __asm__ __volatile__ */
|
||||
/* __asm__ __volatile__ */
|
||||
/* ( */
|
||||
/* Save registers */
|
||||
/* Get the base of the stub lookup table */
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ARCH_MISOC_SRC_MINERVA_CHIP_H
|
||||
#define __ARCH_MISOC_SRC_MINERVA_CHIP_H 1
|
||||
#define __ARCH_MISOC_SRC_MINERVA_CHIP_H
|
||||
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
@@ -135,4 +135,4 @@ static inline unsigned int irq_pending(void)
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_CHIP_H */
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_CHIP_H */
|
||||
|
||||
@@ -166,5 +166,5 @@ void minerva_flush_icache(void);
|
||||
|
||||
void minerva_dumpstate(void);
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_MINERVA_H */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_MINERVA_H */
|
||||
|
||||
@@ -79,4 +79,4 @@
|
||||
# undef HAVE_SERIAL_CONSOLE
|
||||
#endif
|
||||
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_MINERVA_CONFIG_H */
|
||||
#endif /* __ARCH_MISOC_SRC_MINERVA_MINERVA_CONFIG_H */
|
||||
|
||||
@@ -228,4 +228,4 @@ void minerva_dumpstate(void)
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ARCH_STACKDUMP */
|
||||
#endif /* CONFIG_ARCH_STACKDUMP */
|
||||
|
||||
Reference in New Issue
Block a user