-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
litex_sim: add GPIO module exposed through simctrl
Adds a GPIO controller module, which is exposed through simctrl. Supports driving GPIO pins, as well as querying the current pin state (input/output) and signal state. Exposes a JSON-based interface through the simctrl payload. Signed-off-by: Leon Schuermann <leon@is.currently.online>
- Loading branch information
1 parent
538ea26
commit aad6e5f
Showing
4 changed files
with
471 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include ../../variables.mak | ||
UNAME_S := $(shell uname -s) | ||
|
||
include $(SRC_DIR)/modules/rules.mak | ||
|
||
CFLAGS += -I$(TAPCFG_DIRECTORY)/src/include | ||
OBJS = $(MOD).o | ||
|
||
$(MOD).so: $(OBJS) | ||
ifeq ($(UNAME_S),Darwin) | ||
$(CC) $(LDFLAGS) -o $@ $^ | ||
else | ||
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^ | ||
endif |
Oops, something went wrong.