Skip to content

Commit

Permalink
tools: Add cmux command line tool
Browse files Browse the repository at this point in the history
Usage: ./nuttx/tools/cmux -d <device> -n <number> -b <baudrate>

Please refer to the following link for more information:
https://docs.kernel.org/6.1/driver-api/tty/n_gsm.html

Signed-off-by: yinshengkai <[email protected]>
  • Loading branch information
Gary-Hobson authored and xiaoxiang781216 committed Nov 18, 2024
1 parent 637a0f5 commit 96f6097
Show file tree
Hide file tree
Showing 3 changed files with 439 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
/.k2h-body.dat
/.k2h-apndx.dat
/jlink-nuttx.so
/cmux
__pycache__
4 changes: 4 additions & 0 deletions tools/Makefile.host
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ ifdef HOSTDYNEXT
jlink-nuttx: jlink-nuttx$(HOSTDYNEXT)
endif

cmux$(HOSTEXEEXT): cmux.c
$(Q) $(HOSTCC) $(HOSTCFLAGS) $^ -o $@

clean:
$(call DELFILE, b16)
$(call DELFILE, b16.exe)
Expand Down Expand Up @@ -274,6 +277,7 @@ clean:
$(call DELFILE, rmcr.exe)
$(call DELFILE, jlink-nuttx.so)
$(call DELFILE, jlink-nuttx.dll)
$(call DELFILE, cmux$(HOSTEXEEXT))
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) rm -rf *.dSYM
endif
Expand Down
Loading

0 comments on commit 96f6097

Please sign in to comment.