-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add teletype 4 and 5 firmware, add switching menu
- Loading branch information
Showing
19 changed files
with
143 additions
and
60 deletions.
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
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
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,10 @@ | ||
#include <stdint.h> | ||
|
||
void handler_usb_PollADC(int32_t data) { | ||
} | ||
|
||
void handler_usb_Front(int32_t data) { | ||
} | ||
|
||
void handler_usb_ScreenRefresh(int32_t data) { | ||
} |
Submodule teletype
deleted from
efd650
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 |
---|---|---|
@@ -1,59 +1,57 @@ | ||
TARGET_NAME := teletype | ||
|
||
FLAGS += \ | ||
-D__AVR32_UC3B0512__ \ | ||
-Imock_hardware \ | ||
-Imock_hardware/include \ | ||
-Iteletype/libavr32/src \ | ||
-Iteletype/libavr32/src/usb/midi \ | ||
-Iteletype/libavr32/src/usb/hid \ | ||
-Iteletype/libavr32/src/usb/cdc \ | ||
-Iteletype/libavr32/src/usb/ftdi \ | ||
-Iteletype/libavr32/conf \ | ||
-Iteletype/libavr32/conf/teletype \ | ||
-Iteletype/libavr32/asf/common/services/usb \ | ||
-Iteletype/libavr32/asf/common/services/usb/uhc \ | ||
-Iteletype/libavr32/asf/common/services/usb/class/hid \ | ||
-Iteletype/src \ | ||
-Iteletype/src/ops \ | ||
-Iteletype/ \ | ||
-I$(TARGET_NAME)/libavr32/src \ | ||
-I$(TARGET_NAME)/libavr32/src/usb/midi \ | ||
-I$(TARGET_NAME)/libavr32/src/usb/hid \ | ||
-I$(TARGET_NAME)/libavr32/src/usb/cdc \ | ||
-I$(TARGET_NAME)/libavr32/src/usb/ftdi \ | ||
-I$(TARGET_NAME)/libavr32/conf \ | ||
-I$(TARGET_NAME)/libavr32/conf/teletype \ | ||
-I$(TARGET_NAME)/libavr32/asf/common/services/usb \ | ||
-I$(TARGET_NAME)/libavr32/asf/common/services/usb/uhc \ | ||
-I$(TARGET_NAME)/libavr32/asf/common/services/usb/class/hid \ | ||
-I$(TARGET_NAME)/src \ | ||
-I$(TARGET_NAME)/src/ops \ | ||
-I$(TARGET_NAME)/ \ | ||
|
||
SOURCES = \ | ||
$(wildcard teletype/src/*.c) \ | ||
teletype/src/scanner.c \ | ||
teletype/src/match_token.c \ | ||
teletype/module/gitversion.c \ | ||
$(wildcard teletype/src/ops/*.c) \ | ||
$(wildcard teletype/module/*.c) \ | ||
teletype/libavr32/src/events.c \ | ||
teletype/libavr32/src/timers.c \ | ||
teletype/libavr32/src/util.c \ | ||
teletype/libavr32/src/font.c \ | ||
teletype/libavr32/src/kbd.c \ | ||
teletype/libavr32/src/region.c \ | ||
teletype/libavr32/src/random.c \ | ||
teletype/libavr32/src/usb/hid/hid.c \ | ||
teletype/libavr32/src/music.c \ | ||
teletype/libavr32/src/midi_common.c \ | ||
$(wildcard teletype/libavr32/src/euclidean/*.c) \ | ||
$(wildcard $(TARGET_NAME)/src/*.c) \ | ||
$(TARGET_NAME)/src/scanner.c \ | ||
$(TARGET_NAME)/src/match_token.c \ | ||
$(TARGET_NAME)/module/gitversion.c \ | ||
$(wildcard $(TARGET_NAME)/src/ops/*.c) \ | ||
$(wildcard $(TARGET_NAME)/module/*.c) \ | ||
$(TARGET_NAME)/libavr32/src/events.c \ | ||
$(TARGET_NAME)/libavr32/src/timers.c \ | ||
$(TARGET_NAME)/libavr32/src/util.c \ | ||
$(TARGET_NAME)/libavr32/src/font.c \ | ||
$(TARGET_NAME)/libavr32/src/kbd.c \ | ||
$(TARGET_NAME)/libavr32/src/region.c \ | ||
$(TARGET_NAME)/libavr32/src/random.c \ | ||
$(TARGET_NAME)/libavr32/src/usb/hid/hid.c \ | ||
$(TARGET_NAME)/libavr32/src/music.c \ | ||
$(TARGET_NAME)/libavr32/src/midi_common.c \ | ||
$(wildcard $(TARGET_NAME)/libavr32/src/euclidean/*.c) \ | ||
$(wildcard mock_hardware/*.c) \ | ||
$(wildcard mock_hardware/common/*.c) \ | ||
$(wildcard mock_hardware/modules/teletype/*.c) \ | ||
|
||
SOURCES := $(filter-out teletype/module/usb_disk_mode.c, $(SOURCES)) | ||
SOURCES := $(filter-out $(TARGET_NAME)/module/usb_disk_mode.c, $(SOURCES)) | ||
|
||
RAGEL ?= ragel | ||
|
||
# Add a rule to build match_token.c from match_token.rl | ||
teletype/src/match_token.c: teletype/src/match_token.rl | ||
$(RAGEL) -C -G2 teletype/src/match_token.rl -o teletype/src/match_token.c | ||
$(TARGET_NAME)/src/match_token.c: $(TARGET_NAME)/src/match_token.rl | ||
$(RAGEL) -C -G2 $(TARGET_NAME)/src/match_token.rl -o $(TARGET_NAME)/src/match_token.c | ||
|
||
# Add a rule to build scanner.c from scanner.rl | ||
teletype/src/scanner.c: teletype/src/scanner.rl | ||
$(RAGEL) -C -G2 teletype/src/scanner.rl -o teletype/src/scanner.c | ||
$(TARGET_NAME)/src/scanner.c: $(TARGET_NAME)/src/scanner.rl | ||
$(RAGEL) -C -G2 $(TARGET_NAME)/src/scanner.rl -o $(TARGET_NAME)/src/scanner.c | ||
|
||
# Add the git commit id to a file for use when printing out the version | ||
teletype/module/gitversion.c: teletype | ||
echo "const char *git_version = \"$(shell cut -d '-' -f 1 <<< $(shell cd teletype; git describe --tags | cut -c 1-)) $(shell cd teletype; git describe --always --dirty --exclude '*' | tr '[a-z]' '[A-Z]')\";" > $@ | ||
$(TARGET_NAME)/module/gitversion.c: $(TARGET_NAME) | ||
echo "const char *git_version = \"$(shell cut -d '-' -f 1 <<< $(shell cd $(TARGET_NAME); git describe --tags | cut -c 1-)) $(shell cd $(TARGET_NAME); git describe --always --dirty --exclude '*' | tr '[a-z]' '[A-Z]')\";" > $@ | ||
|
||
include common.mk |
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
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
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
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
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
Oops, something went wrong.