Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 923263b

Browse files
zolkisgrgustaf
authored andcommitted
[ashell] cleanups in preparation for comms rewrite (#1567)
Removed functions used once or never, simplifications, reorganizations. Signed-off-by: Zoltan Kis <[email protected]>
1 parent 88e6cf8 commit 923263b

15 files changed

+740
-1112
lines changed

src/ashell/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@ ZEPHYRINCLUDE += -I$(ZEPHYR_BASE)/samples/subsys/usb/webusb/src \
1313
-I${ZEPHYR_BASE}/subsys/usb/class \
1414
-I$(ZEPHYR_BASE)/include/usb
1515
obj-y += ../../deps/zephyr/samples/subsys/usb/webusb/src/webusb_serial.o
16-
obj-y += webusb-handler.o
16+
obj-y += term-webusb.o
1717
endif
1818

1919
obj-y += file-utils.o
2020
obj-y += jerry-code.o
2121

22-
obj-y += ihex-handler.o
22+
obj-y += term-ihex.o
2323

24-
obj-y += comms-uart.o
25-
obj-y += comms-shell.o
26-
obj-y += shell-state.o
24+
obj-y += term-uart.o
25+
obj-y += term-cmd.o
2726

2827
obj-y += ../../deps/ihex/kk_ihex_read.o
2928

src/ashell/ashell.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) 2016-2017, Intel Corporation.
2+
3+
#ifndef __ashell_h__
4+
#define __ashell_h__
5+
6+
// called from Zephyr.js main.c
7+
void zjs_ashell_init();
8+
void zjs_ashell_process();
9+
10+
#endif // __ashell_h__

0 commit comments

Comments
 (0)