[debug] remove lib/debug and move to the top/ module

Most of the functions for this was declared in a top level lk/ include
space, so go ahead and move it there.

A few exceptions:
- Moved spin() over to platform/time.h and platform/time.c since the
function more logically belongs to platform/time.h.  Any users of
spin() will need to update their headers to include platform/time.h
instead.

- Renamed spin_cycles() to arm_cm_spin_cycles() and moved over into
arm/cm.h since it is currently defined in arch/arm-m and only used for
targets that implicitly are for arm-m.
This commit is contained in:
Travis Geiselbrecht
2025-09-20 16:03:24 -07:00
parent 163e296e70
commit 04b88750b3
16 changed files with 44 additions and 42 deletions

View File

@@ -4,7 +4,6 @@ MODULE := $(LOCAL_DIR)
MODULE_DEPS := \
lib/libc \
lib/debug \
lib/heap
MODULE_SRCS := \