diff options
author | Marc Schink <openocd-dev@marcschink.de> | 2015-09-21 21:07:46 +0200 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2016-05-24 22:30:55 +0100 |
commit | d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0 (patch) | |
tree | 78f8488d823e6abc4774529de947572e955a525e /src/rtos | |
parent | d0e763ac7ef6aa17b17bd00ccdfbccfb4eacda69 (diff) | |
download | riscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.zip riscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.tar.gz riscv-openocd-d4b7cbff88bb5eb14fececdbd8e2a0b3e58ce6e0.tar.bz2 |
Make #include guard naming consistent
Change-Id: Ie13e8af0bb74ed290f811dcad64ad06c9d8cb4fa
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/2956
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/rtos')
-rw-r--r-- | src/rtos/linux_header.h | 5 | ||||
-rw-r--r-- | src/rtos/rtos.h | 6 | ||||
-rw-r--r-- | src/rtos/rtos_chibios_stackings.h | 6 | ||||
-rw-r--r-- | src/rtos/rtos_ecos_stackings.h | 6 | ||||
-rw-r--r-- | src/rtos/rtos_embkernel_stackings.h | 6 | ||||
-rw-r--r-- | src/rtos/rtos_mqx_stackings.h | 7 | ||||
-rw-r--r-- | src/rtos/rtos_standard_stackings.h | 6 |
7 files changed, 23 insertions, 19 deletions
diff --git a/src/rtos/linux_header.h b/src/rtos/linux_header.h index faaf319..a2b408e 100644 --- a/src/rtos/linux_header.h +++ b/src/rtos/linux_header.h @@ -1,3 +1,6 @@ +#ifndef OPENOCD_RTOS_LINUX_HEADER_H +#define OPENOCD_RTOS_LINUX_HEADER_H + /* gdb script to update the header file according to kernel version and build option before executing function awareness @@ -30,3 +33,5 @@ define awareness #define CPU_CONT 0x1c #define PREEMPT 0x4 #define MM_CTX 0x160 + +#endif /* OPENOCD_RTOS_LINUX_HEADER_H */ diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h index 8ec155e..4c6989f 100644 --- a/src/rtos/rtos.h +++ b/src/rtos/rtos.h @@ -16,8 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef RTOS_H -#define RTOS_H +#ifndef OPENOCD_RTOS_RTOS_H +#define OPENOCD_RTOS_RTOS_H #include "server/server.h" #include <jim-nvp.h> @@ -109,4 +109,4 @@ int rtos_smp_init(struct target *target); /* function for handling symbol access */ int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size); -#endif /* RTOS_H */ +#endif /* OPENOCD_RTOS_RTOS_H */ diff --git a/src/rtos/rtos_chibios_stackings.h b/src/rtos/rtos_chibios_stackings.h index 3b6d10b..130aaa1 100644 --- a/src/rtos/rtos_chibios_stackings.h +++ b/src/rtos/rtos_chibios_stackings.h @@ -16,8 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef INCLUDED_RTOS_CHIBIOS_STACKINGS_H_ -#define INCLUDED_RTOS_CHIBIOS_STACKINGS_H_ +#ifndef OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H +#define OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H #ifdef HAVE_CONFIG_H #include "config.h" @@ -28,4 +28,4 @@ extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking; extern const struct rtos_register_stacking rtos_chibios_arm_v7m_stacking_w_fpu; -#endif /* ifndef INCLUDED_RTOS_CHIBIOS_STACKINGS_H_ */ +#endif /* OPENOCD_RTOS_RTOS_CHIBIOS_STACKINGS_H */ diff --git a/src/rtos/rtos_ecos_stackings.h b/src/rtos/rtos_ecos_stackings.h index 512c5b7..951f7de 100644 --- a/src/rtos/rtos_ecos_stackings.h +++ b/src/rtos/rtos_ecos_stackings.h @@ -14,8 +14,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ -#define INCLUDED_RTOS_STANDARD_STACKINGS_H_ +#ifndef OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H +#define OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H #ifdef HAVE_CONFIG_H #include "config.h" @@ -25,4 +25,4 @@ extern const struct rtos_register_stacking rtos_eCos_Cortex_M3_stacking; -#endif /* ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ */ +#endif /* OPENOCD_RTOS_RTOS_ECOS_STACKINGS_H */ diff --git a/src/rtos/rtos_embkernel_stackings.h b/src/rtos/rtos_embkernel_stackings.h index f664afa..89a0c2f 100644 --- a/src/rtos/rtos_embkernel_stackings.h +++ b/src/rtos/rtos_embkernel_stackings.h @@ -16,8 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_ -#define INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_ +#ifndef OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H +#define OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H #ifdef HAVE_CONFIG_H #include "config.h" @@ -27,4 +27,4 @@ extern const struct rtos_register_stacking rtos_embkernel_Cortex_M_stacking; -#endif /* ifndef INCLUDED_RTOS_EMBKERNEL_STACKINGS_H_ */ +#endif /* OPENOCD_RTOS_RTOS_EMBKERNEL_STACKINGS_H */ diff --git a/src/rtos/rtos_mqx_stackings.h b/src/rtos/rtos_mqx_stackings.h index 14800bb..6ebd287 100644 --- a/src/rtos/rtos_mqx_stackings.h +++ b/src/rtos/rtos_mqx_stackings.h @@ -16,8 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef INCLUDED_RTOS_MQX_STACKINGS_H_ -#define INCLUDED_RTOS_MQX_STACKINGS_H_ +#ifndef OPENOCD_RTOS_RTOS_MQX_STACKINGS_H +#define OPENOCD_RTOS_RTOS_MQX_STACKINGS_H #ifdef HAVE_CONFIG_H #include "config.h" @@ -27,5 +27,4 @@ extern const struct rtos_register_stacking rtos_mqx_arm_v7m_stacking; -#endif /* ifndef INCLUDED_RTOS_MQX_STACKINGS_H_ */ - +#endif /* OPENOCD_RTOS_RTOS_MQX_STACKINGS_H */ diff --git a/src/rtos/rtos_standard_stackings.h b/src/rtos/rtos_standard_stackings.h index a5fd0ac..6971efd 100644 --- a/src/rtos/rtos_standard_stackings.h +++ b/src/rtos/rtos_standard_stackings.h @@ -16,8 +16,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ -#ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ -#define INCLUDED_RTOS_STANDARD_STACKINGS_H_ +#ifndef OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H +#define OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H #ifdef HAVE_CONFIG_H #include "config.h" @@ -37,4 +37,4 @@ int64_t rtos_Cortex_M_stack_align(struct target *target, const uint8_t *stack_data, const struct rtos_register_stacking *stacking, int64_t stack_ptr, size_t xpsr_offset); -#endif /* ifndef INCLUDED_RTOS_STANDARD_STACKINGS_H_ */ +#endif /* OPENOCD_RTOS_RTOS_STANDARD_STACKINGS_H */ |