aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/chromium-ec.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-02-24 11:30:56 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2022-03-26 13:35:55 +0000
commit6c9dd1c6ba9fba806ed7ed6f6ecb59723beb9cad (patch)
tree71b101c2039515397909d02b8375f40a9bb2dc41 /src/rtos/chromium-ec.c
parent3fa695be2401c88dbd93b2c9dad1c098a948c4ca (diff)
downloadriscv-openocd-6c9dd1c6ba9fba806ed7ed6f6ecb59723beb9cad.zip
riscv-openocd-6c9dd1c6ba9fba806ed7ed6f6ecb59723beb9cad.tar.gz
riscv-openocd-6c9dd1c6ba9fba806ed7ed6f6ecb59723beb9cad.tar.bz2
helper/bits: add BIT_ULL and GENMASK macros
To support 64 bits bit and masks Replace local definition of BIT in rtos/chromium-ec Change-Id: I1f268d6e8790f1b07bf798680b797878ce81064b Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6857 Tested-by: jenkins
Diffstat (limited to 'src/rtos/chromium-ec.c')
-rw-r--r--src/rtos/chromium-ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/chromium-ec.c b/src/rtos/chromium-ec.c
index 2f1a0cf..95a228d 100644
--- a/src/rtos/chromium-ec.c
+++ b/src/rtos/chromium-ec.c
@@ -11,6 +11,7 @@
#include "config.h"
#endif
+#include <helper/bits.h>
#include <rtos/rtos.h>
#include <target/target.h>
#include <target/target_type.h>
@@ -20,7 +21,6 @@
#define CROS_EC_MAX_TASKS 32
#define CROS_EC_MAX_NAME 200
#define CROS_EC_IDLE_STRING "<< idle >>"
-#define BIT(x) (1 << (x))
struct chromium_ec_params {
const char *target_name;