mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
61 lines
1.7 KiB
Python
61 lines
1.7 KiB
Python
#!/bin/false
|
|
# This file is part of Espruino, a JavaScript interpreter for Microcontrollers
|
|
#
|
|
# Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
# ----------------------------------------------------------------------------------------
|
|
# This file contains information for a specific board - the available pins, and where LEDs,
|
|
# Buttons, and other in-built peripherals are. It is used to build documentation as well
|
|
# as various source and header files for Espruino.
|
|
# ----------------------------------------------------------------------------------------
|
|
|
|
import pinutils;
|
|
info = {
|
|
'name' : "Normal Linux Compile",
|
|
'default_console' : "EV_USBSERIAL",
|
|
'variables' : 0, # 0 = resizable variables, rather than fixed
|
|
'binary_name' : 'espruino',
|
|
'build' : {
|
|
'libraries' : [
|
|
'NET',
|
|
'TENSORFLOW',
|
|
'GRAPHICS',
|
|
'FILESYSTEM',
|
|
'CRYPTO','SHA256','SHA512',
|
|
'TLS',
|
|
'TELNET',
|
|
],
|
|
'makefile' : [
|
|
# 'DEFINES+=-DFLASH_64BITS_ALIGNMENT=1', For testing 64 bit flash writes
|
|
'DEFINES+=-DUSE_FONT_6X8',
|
|
'LINUX=1',
|
|
]
|
|
}
|
|
};
|
|
chip = {
|
|
'part' : "LINUX",
|
|
'family' : "LINUX",
|
|
'package' : "",
|
|
'ram' : 0,
|
|
'flash' : 256, # size of file used to fake flash memory (kb)
|
|
'speed' : -1,
|
|
'usart' : 6,
|
|
'spi' : 3,
|
|
'i2c' : 3,
|
|
'adc' : 0,
|
|
'dac' : 0,
|
|
};
|
|
|
|
devices = {
|
|
'USB' : {} # to convince code that we have a USB port (it's used for the console ion Linux)
|
|
};
|
|
|
|
def get_pins():
|
|
pins = pinutils.generate_pins(0,32)
|
|
# just fake pins D0 .. D32
|
|
return pins
|