From 1f30cbc0c572dda4ba4d91cf2c899edfc2a63b07 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Mon, 5 Dec 2022 16:09:23 +0100 Subject: [PATCH] core/bitarithm: guard BIT1x definition --- core/lib/include/bitarithm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/include/bitarithm.h b/core/lib/include/bitarithm.h index fece5ae8c2..f02cfcc51d 100644 --- a/core/lib/include/bitarithm.h +++ b/core/lib/include/bitarithm.h @@ -66,6 +66,8 @@ extern "C" { #define BIT7 0x00000080 /**< Bit 7 set define */ #define BIT8 0x00000100 /**< Bit 8 set define */ #define BIT9 0x00000200 /**< Bit 9 set define */ +#endif +#ifndef BIT10 #define BIT10 0x00000400 /**< Bit 10 set define */ #define BIT11 0x00000800 /**< Bit 11 set define */ #define BIT12 0x00001000 /**< Bit 12 set define */