Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hamilton Border Router Demo Code #38

Open
wants to merge 2 commits into
base: hamilton-combined-v11.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/tools/rethos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rethos
339 changes: 339 additions & 0 deletions dist/tools/rethos/LICENSE

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/tools/rethos/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
all: rethos

rethos: rethos.o
$(CC) -O3 -Wall rethos.o -lrt -o rethos

rethos.o: rethos.c
$(CC) -O3 -Wall -c rethos.c -o rethos.o

clean:
rm -f rethos rethos.o
15 changes: 15 additions & 0 deletions dist/tools/rethos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Requirements

- currently, the host side only compiles on Linux

## Usage

To use, add

#
GNRC_NETIF_NUMOF := 2
USEMODULE += ethos gnrc_netdev2
CFLAGS += '-DETHOS_UART=UART_DEV(0)' -DETHOS_BAUDRATE=115200 -DUSE_ETHOS_FOR_STDIO

to app Makefile, "make clean all flash", then run this tool so follows:
# sudo ./ethos <tap-device> <serial>
Loading