-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running the embedding-full example (minus POSIX VFS) from micropython/micropython#11430 and a rudimentary REPL.
- Loading branch information
0 parents
commit b3b8fd3
Showing
20 changed files
with
1,044 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/build/ | ||
/build-embed/ | ||
/micropython_embed/ | ||
/pewpew.pdx | ||
/Source/pdex.* |
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,3 @@ | ||
[submodule "micropython"] | ||
path = micropython | ||
url = https://github.com/micropython/micropython.git |
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,54 @@ | ||
HEAP_SIZE = 8388208 | ||
STACK_SIZE = 61800 | ||
|
||
PRODUCT = pewpew.pdx | ||
MICROPY_EMBED_DIR = micropython_embed | ||
|
||
# Locate the SDK | ||
SDK = ${PLAYDATE_SDK_PATH} | ||
ifeq ($(SDK),) | ||
SDK = $(shell egrep '^\s*SDKRoot' ~/.Playdate/config | head -n 1 | cut -c9-) | ||
endif | ||
|
||
ifeq ($(SDK),) | ||
$(error SDK path not found; set ENV value PLAYDATE_SDK_PATH) | ||
endif | ||
|
||
###### | ||
# IMPORTANT: You must add your source folders to VPATH for make to find them | ||
# ex: VPATH += src1:src2 | ||
###### | ||
|
||
VPATH += src | ||
|
||
# List C source files here | ||
SRC = src/main.c src/mphal.c src/terminal.c src/modules/c_hello/modc_hello.c | ||
SRC += $(wildcard $(MICROPY_EMBED_DIR)/*/*.c) | ||
# Filter out lib because the files in there cannot be compiled separately, they | ||
# are #included by other .c files. | ||
SRC += $(filter-out $(MICROPY_EMBED_DIR)/lib/%.c,$(wildcard $(MICROPY_EMBED_DIR)/*/*/*.c)) | ||
|
||
# List all user include directories here | ||
UINCDIR = $(MICROPY_EMBED_DIR) $(MICROPY_EMBED_DIR)/port $(MICROPY_EMBED_DIR)/lib/littlefs | ||
|
||
# List user asm files | ||
UASRC = | ||
|
||
# List all user C define here, like -D_DEBUG=1 | ||
UDEFS = | ||
|
||
# Define ASM defines here | ||
UADEFS = | ||
|
||
# List the user directory to look for the libraries here | ||
ULIBDIR = | ||
|
||
# List all user libraries here | ||
ULIBS = | ||
|
||
include $(SDK)/C_API/buildsupport/common.mk | ||
|
||
micropython_embed/port/micropython_embed.h: micropython/ports/embed/port/micropython_embed.h mpconfigport.h manifest.py | ||
$(MAKE) -f micropython_embed.mk | ||
|
||
build/src/main.o: micropython_embed/port/micropython_embed.h |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,192 @@ | ||
U+0020 8 | ||
U+0021 8 | ||
U+0022 8 | ||
U+0023 8 | ||
U+0024 8 | ||
U+0025 8 | ||
U+0026 8 | ||
U+0027 8 | ||
U+0028 8 | ||
U+0029 8 | ||
U+002A 8 | ||
U+002B 8 | ||
U+002C 8 | ||
U+002D 8 | ||
U+002E 8 | ||
U+002F 8 | ||
U+0030 8 | ||
U+0031 8 | ||
U+0032 8 | ||
U+0033 8 | ||
U+0034 8 | ||
U+0035 8 | ||
U+0036 8 | ||
U+0037 8 | ||
U+0038 8 | ||
U+0039 8 | ||
U+003A 8 | ||
U+003B 8 | ||
U+003C 8 | ||
U+003D 8 | ||
U+003E 8 | ||
U+003F 8 | ||
U+0040 8 | ||
U+0041 8 | ||
U+0042 8 | ||
U+0043 8 | ||
U+0044 8 | ||
U+0045 8 | ||
U+0046 8 | ||
U+0047 8 | ||
U+0048 8 | ||
U+0049 8 | ||
U+004A 8 | ||
U+004B 8 | ||
U+004C 8 | ||
U+004D 8 | ||
U+004E 8 | ||
U+004F 8 | ||
U+0050 8 | ||
U+0051 8 | ||
U+0052 8 | ||
U+0053 8 | ||
U+0054 8 | ||
U+0055 8 | ||
U+0056 8 | ||
U+0057 8 | ||
U+0058 8 | ||
U+0059 8 | ||
U+005A 8 | ||
U+005B 8 | ||
U+005C 8 | ||
U+005D 8 | ||
U+005E 8 | ||
U+005F 8 | ||
U+0060 8 | ||
U+0061 8 | ||
U+0062 8 | ||
U+0063 8 | ||
U+0064 8 | ||
U+0065 8 | ||
U+0066 8 | ||
U+0067 8 | ||
U+0068 8 | ||
U+0069 8 | ||
U+006A 8 | ||
U+006B 8 | ||
U+006C 8 | ||
U+006D 8 | ||
U+006E 8 | ||
U+006F 8 | ||
U+0070 8 | ||
U+0071 8 | ||
U+0072 8 | ||
U+0073 8 | ||
U+0074 8 | ||
U+0075 8 | ||
U+0076 8 | ||
U+0077 8 | ||
U+0078 8 | ||
U+0079 8 | ||
U+007A 8 | ||
U+007B 8 | ||
U+007C 8 | ||
U+007D 8 | ||
U+007E 8 | ||
U+007F 8 | ||
U+00A0 8 | ||
U+00A1 8 | ||
U+00A2 8 | ||
U+00A3 8 | ||
U+00A4 8 | ||
U+00A5 8 | ||
U+00A6 8 | ||
U+00A7 8 | ||
U+00A8 8 | ||
U+00A9 8 | ||
U+00AA 8 | ||
U+00AB 8 | ||
U+00AC 8 | ||
U+00AD 8 | ||
U+00AE 8 | ||
U+00AF 8 | ||
U+00B0 8 | ||
U+00B1 8 | ||
U+00B2 8 | ||
U+00B3 8 | ||
U+00B4 8 | ||
U+00B5 8 | ||
U+00B6 8 | ||
U+00B7 8 | ||
U+00B8 8 | ||
U+00B9 8 | ||
U+00BA 8 | ||
U+00BB 8 | ||
U+00BC 8 | ||
U+00BD 8 | ||
U+00BE 8 | ||
U+00BF 8 | ||
U+00C0 8 | ||
U+00C1 8 | ||
U+00C2 8 | ||
U+00C3 8 | ||
U+00C4 8 | ||
U+00C5 8 | ||
U+00C6 8 | ||
U+00C7 8 | ||
U+00C8 8 | ||
U+00C9 8 | ||
U+00CA 8 | ||
U+00CB 8 | ||
U+00CC 8 | ||
U+00CD 8 | ||
U+00CE 8 | ||
U+00CF 8 | ||
U+00D0 8 | ||
U+00D1 8 | ||
U+00D2 8 | ||
U+00D3 8 | ||
U+00D4 8 | ||
U+00D5 8 | ||
U+00D6 8 | ||
U+00D7 8 | ||
U+00D8 8 | ||
U+00D9 8 | ||
U+00DA 8 | ||
U+00DB 8 | ||
U+00DC 8 | ||
U+00DD 8 | ||
U+00DE 8 | ||
U+00DF 8 | ||
U+00E0 8 | ||
U+00E1 8 | ||
U+00E2 8 | ||
U+00E3 8 | ||
U+00E4 8 | ||
U+00E5 8 | ||
U+00E6 8 | ||
U+00E7 8 | ||
U+00E8 8 | ||
U+00E9 8 | ||
U+00EA 8 | ||
U+00EB 8 | ||
U+00EC 8 | ||
U+00ED 8 | ||
U+00EE 8 | ||
U+00EF 8 | ||
U+00F0 8 | ||
U+00F1 8 | ||
U+00F2 8 | ||
U+00F3 8 | ||
U+00F4 8 | ||
U+00F5 8 | ||
U+00F6 8 | ||
U+00F7 8 | ||
U+00F8 8 | ||
U+00F9 8 | ||
U+00FA 8 | ||
U+00FB 8 | ||
U+00FC 8 | ||
U+00FD 8 | ||
U+00FE 8 | ||
U+00FF 8 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.