+// SPDX-License-Identifier: GPL-2.0-only
+
/*
- * SPDX-License-Identifier: GPL-2.0
- *
* Copyright (c) 2018 National Instruments Corp
* Author: Moritz Fischer <moritz.fischer@ettus.com>
*
* Chromium-EC RTOS Task Awareness
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <helper/bits.h>
#include <rtos/rtos.h>
#include <target/target.h>
#include <target/target_type.h>
#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;
.task_offset_sp = 0,
.task_offset_events = 4,
.task_offset_runtime = 8,
- .stacking = &rtos_standard_Cortex_M3_stacking,
+ .stacking = &rtos_standard_cortex_m3_stacking,
},
{
.task_offset_sp = 0,
.task_offset_events = 4,
.task_offset_runtime = 8,
- .stacking = &rtos_standard_Cortex_M3_stacking,
+ .stacking = &rtos_standard_cortex_m3_stacking,
},
};