This commit is contained in:
Gordon Williams 2015-12-22 16:11:16 +00:00
parent d0a231c6e9
commit 4f76bd6439
2 changed files with 11 additions and 2 deletions

View File

@ -28,7 +28,16 @@ info = {
'binaries' : [
{ 'filename' : 'espruino_%v_espruino_1r3_wiznet.bin', 'description' : "WIZNet W5500 Ethernet Networking"},
{ 'filename' : 'espruino_%v_espruino_1r3.bin', 'description' : "TI CC3000 WiFi Networking"},
]
],
'build' : {
'defines' : [
'USE_NET',
'USE_GRAPHICS',
'USE_TV',
'USE_HASHLIB',
'USE_FILESYSTEM'
]
}
};
chip = {
'part' : "STM32F103RCT6",

View File

@ -91,7 +91,7 @@ def get_jsondata(is_for_document, parseArgs = True, board = False):
jswraps = []
defines = []
if board and board.info["build"] and board.info["build"]["defines"]:
if board and ("build" in board.info) and ("defines" in board.info["build"]):
for i in board.info["build"]["defines"]:
print("Got define from board: " + i);
defines.append(i)