Skip to content

Commit d7ca884

Browse files
inventvictordevyte
authored andcommitted
support new board (invent one) (#5286)
* add inventone to boards.txt.py * add inventone pin mapping .h file to variants * generate files running boards.txt.py via Python2 * delete .orig files
1 parent cb05b86 commit d7ca884

File tree

5 files changed

+253
-0
lines changed

5 files changed

+253
-0
lines changed

Diff for: boards.txt

+169
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,175 @@ huzzah.menu.baud.512000.upload.speed=512000
10191019
huzzah.menu.baud.921600=921600
10201020
huzzah.menu.baud.921600.upload.speed=921600
10211021

1022+
##############################################################
1023+
inventone.name=Invent One
1024+
inventone.build.board=ESP8266_GENERIC
1025+
inventone.build.variant=inventone
1026+
inventone.upload.tool=esptool
1027+
inventone.upload.maximum_data_size=81920
1028+
inventone.upload.wait_for_upload_port=true
1029+
inventone.upload.erase_cmd=
1030+
inventone.serial.disableDTR=true
1031+
inventone.serial.disableRTS=true
1032+
inventone.build.mcu=esp8266
1033+
inventone.build.core=esp8266
1034+
inventone.build.spiffs_pagesize=256
1035+
inventone.build.debug_port=
1036+
inventone.build.debug_level=
1037+
inventone.menu.xtal.80=80 MHz
1038+
inventone.menu.xtal.80.build.f_cpu=80000000L
1039+
inventone.menu.xtal.160=160 MHz
1040+
inventone.menu.xtal.160.build.f_cpu=160000000L
1041+
inventone.menu.vt.flash=Flash
1042+
inventone.menu.vt.flash.build.vtable_flags=-DVTABLES_IN_FLASH
1043+
inventone.menu.vt.heap=Heap
1044+
inventone.menu.vt.heap.build.vtable_flags=-DVTABLES_IN_DRAM
1045+
inventone.menu.vt.iram=IRAM
1046+
inventone.menu.vt.iram.build.vtable_flags=-DVTABLES_IN_IRAM
1047+
inventone.upload.resetmethod=nodemcu
1048+
inventone.build.flash_mode=dio
1049+
inventone.build.flash_freq=40
1050+
inventone.menu.eesz.4M=4M (no SPIFFS)
1051+
inventone.menu.eesz.4M.build.flash_size=4M
1052+
inventone.menu.eesz.4M.build.flash_size_bytes=0x400000
1053+
inventone.menu.eesz.4M.build.flash_ld=eagle.flash.4m.ld
1054+
inventone.menu.eesz.4M.build.spiffs_pagesize=256
1055+
inventone.menu.eesz.4M.upload.maximum_size=1044464
1056+
inventone.menu.eesz.4M.build.rfcal_addr=0x3FC000
1057+
inventone.menu.eesz.4M1M=4M (1M SPIFFS)
1058+
inventone.menu.eesz.4M1M.build.flash_size=4M
1059+
inventone.menu.eesz.4M1M.build.flash_size_bytes=0x400000
1060+
inventone.menu.eesz.4M1M.build.flash_ld=eagle.flash.4m1m.ld
1061+
inventone.menu.eesz.4M1M.build.spiffs_pagesize=256
1062+
inventone.menu.eesz.4M1M.upload.maximum_size=1044464
1063+
inventone.menu.eesz.4M1M.build.rfcal_addr=0x3FC000
1064+
inventone.menu.eesz.4M1M.build.spiffs_start=0x300000
1065+
inventone.menu.eesz.4M1M.build.spiffs_end=0x3FB000
1066+
inventone.menu.eesz.4M1M.build.spiffs_blocksize=8192
1067+
inventone.menu.eesz.4M2M=4M (2M SPIFFS)
1068+
inventone.menu.eesz.4M2M.build.flash_size=4M
1069+
inventone.menu.eesz.4M2M.build.flash_size_bytes=0x400000
1070+
inventone.menu.eesz.4M2M.build.flash_ld=eagle.flash.4m2m.ld
1071+
inventone.menu.eesz.4M2M.build.spiffs_pagesize=256
1072+
inventone.menu.eesz.4M2M.upload.maximum_size=1044464
1073+
inventone.menu.eesz.4M2M.build.rfcal_addr=0x3FC000
1074+
inventone.menu.eesz.4M2M.build.spiffs_start=0x200000
1075+
inventone.menu.eesz.4M2M.build.spiffs_end=0x3FB000
1076+
inventone.menu.eesz.4M2M.build.spiffs_blocksize=8192
1077+
inventone.menu.eesz.4M3M=4M (3M SPIFFS)
1078+
inventone.menu.eesz.4M3M.build.flash_size=4M
1079+
inventone.menu.eesz.4M3M.build.flash_size_bytes=0x400000
1080+
inventone.menu.eesz.4M3M.build.flash_ld=eagle.flash.4m3m.ld
1081+
inventone.menu.eesz.4M3M.build.spiffs_pagesize=256
1082+
inventone.menu.eesz.4M3M.upload.maximum_size=1044464
1083+
inventone.menu.eesz.4M3M.build.rfcal_addr=0x3FC000
1084+
inventone.menu.eesz.4M3M.build.spiffs_start=0x100000
1085+
inventone.menu.eesz.4M3M.build.spiffs_end=0x3FB000
1086+
inventone.menu.eesz.4M3M.build.spiffs_blocksize=8192
1087+
inventone.menu.ip.lm2f=v2 Lower Memory
1088+
inventone.menu.ip.lm2f.build.lwip_include=lwip2/include
1089+
inventone.menu.ip.lm2f.build.lwip_lib=-llwip2-536-feat
1090+
inventone.menu.ip.lm2f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1
1091+
inventone.menu.ip.hb2f=v2 Higher Bandwidth
1092+
inventone.menu.ip.hb2f.build.lwip_include=lwip2/include
1093+
inventone.menu.ip.hb2f.build.lwip_lib=-llwip2-1460-feat
1094+
inventone.menu.ip.hb2f.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=1
1095+
inventone.menu.ip.lm2n=v2 Lower Memory (no features)
1096+
inventone.menu.ip.lm2n.build.lwip_include=lwip2/include
1097+
inventone.menu.ip.lm2n.build.lwip_lib=-llwip2-536
1098+
inventone.menu.ip.lm2n.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=0
1099+
inventone.menu.ip.hb2n=v2 Higher Bandwidth (no features)
1100+
inventone.menu.ip.hb2n.build.lwip_include=lwip2/include
1101+
inventone.menu.ip.hb2n.build.lwip_lib=-llwip2-1460
1102+
inventone.menu.ip.hb2n.build.lwip_flags=-DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=0
1103+
inventone.menu.ip.hb1=v1.4 Higher Bandwidth
1104+
inventone.menu.ip.hb1.build.lwip_lib=-llwip_gcc
1105+
inventone.menu.ip.hb1.build.lwip_flags=-DLWIP_OPEN_SRC
1106+
inventone.menu.ip.src=v1.4 Compile from source
1107+
inventone.menu.ip.src.build.lwip_lib=-llwip_src
1108+
inventone.menu.ip.src.build.lwip_flags=-DLWIP_OPEN_SRC
1109+
inventone.menu.ip.src.recipe.hooks.sketch.prebuild.1.pattern=make -C "{runtime.platform.path}/tools/sdk/lwip/src" install TOOLS_PATH="{runtime.tools.xtensa-lx106-elf-gcc.path}/bin/xtensa-lx106-elf-"
1110+
inventone.menu.dbg.Disabled=Disabled
1111+
inventone.menu.dbg.Disabled.build.debug_port=
1112+
inventone.menu.dbg.Serial=Serial
1113+
inventone.menu.dbg.Serial.build.debug_port=-DDEBUG_ESP_PORT=Serial
1114+
inventone.menu.dbg.Serial1=Serial1
1115+
inventone.menu.dbg.Serial1.build.debug_port=-DDEBUG_ESP_PORT=Serial1
1116+
inventone.menu.lvl.None____=None
1117+
inventone.menu.lvl.None____.build.debug_level=
1118+
inventone.menu.lvl.SSL=SSL
1119+
inventone.menu.lvl.SSL.build.debug_level= -DDEBUG_ESP_SSL
1120+
inventone.menu.lvl.TLS_MEM=TLS_MEM
1121+
inventone.menu.lvl.TLS_MEM.build.debug_level= -DDEBUG_ESP_TLS_MEM
1122+
inventone.menu.lvl.HTTP_CLIENT=HTTP_CLIENT
1123+
inventone.menu.lvl.HTTP_CLIENT.build.debug_level= -DDEBUG_ESP_HTTP_CLIENT
1124+
inventone.menu.lvl.HTTP_SERVER=HTTP_SERVER
1125+
inventone.menu.lvl.HTTP_SERVER.build.debug_level= -DDEBUG_ESP_HTTP_SERVER
1126+
inventone.menu.lvl.SSLTLS_MEM=SSL+TLS_MEM
1127+
inventone.menu.lvl.SSLTLS_MEM.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM
1128+
inventone.menu.lvl.SSLHTTP_CLIENT=SSL+HTTP_CLIENT
1129+
inventone.menu.lvl.SSLHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_CLIENT
1130+
inventone.menu.lvl.SSLHTTP_SERVER=SSL+HTTP_SERVER
1131+
inventone.menu.lvl.SSLHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_SERVER
1132+
inventone.menu.lvl.TLS_MEMHTTP_CLIENT=TLS_MEM+HTTP_CLIENT
1133+
inventone.menu.lvl.TLS_MEMHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT
1134+
inventone.menu.lvl.TLS_MEMHTTP_SERVER=TLS_MEM+HTTP_SERVER
1135+
inventone.menu.lvl.TLS_MEMHTTP_SERVER.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_SERVER
1136+
inventone.menu.lvl.HTTP_CLIENTHTTP_SERVER=HTTP_CLIENT+HTTP_SERVER
1137+
inventone.menu.lvl.HTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
1138+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENT=SSL+TLS_MEM+HTTP_CLIENT
1139+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENT.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT
1140+
inventone.menu.lvl.SSLTLS_MEMHTTP_SERVER=SSL+TLS_MEM+HTTP_SERVER
1141+
inventone.menu.lvl.SSLTLS_MEMHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_SERVER
1142+
inventone.menu.lvl.SSLHTTP_CLIENTHTTP_SERVER=SSL+HTTP_CLIENT+HTTP_SERVER
1143+
inventone.menu.lvl.SSLHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
1144+
inventone.menu.lvl.TLS_MEMHTTP_CLIENTHTTP_SERVER=TLS_MEM+HTTP_CLIENT+HTTP_SERVER
1145+
inventone.menu.lvl.TLS_MEMHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
1146+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVER=SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER
1147+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVER.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER
1148+
inventone.menu.lvl.CORE=CORE
1149+
inventone.menu.lvl.CORE.build.debug_level= -DDEBUG_ESP_CORE
1150+
inventone.menu.lvl.WIFI=WIFI
1151+
inventone.menu.lvl.WIFI.build.debug_level= -DDEBUG_ESP_WIFI
1152+
inventone.menu.lvl.HTTP_UPDATE=HTTP_UPDATE
1153+
inventone.menu.lvl.HTTP_UPDATE.build.debug_level= -DDEBUG_ESP_HTTP_UPDATE
1154+
inventone.menu.lvl.UPDATER=UPDATER
1155+
inventone.menu.lvl.UPDATER.build.debug_level= -DDEBUG_ESP_UPDATER
1156+
inventone.menu.lvl.OTA=OTA
1157+
inventone.menu.lvl.OTA.build.debug_level= -DDEBUG_ESP_OTA
1158+
inventone.menu.lvl.OOM=OOM
1159+
inventone.menu.lvl.OOM.build.debug_level= -DDEBUG_ESP_OOM
1160+
inventone.menu.lvl.COREWIFIHTTP_UPDATEUPDATEROTAOOM=CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
1161+
inventone.menu.lvl.COREWIFIHTTP_UPDATEUPDATEROTAOOM.build.debug_level= -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM
1162+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVERCOREWIFIHTTP_UPDATEUPDATEROTAOOM=SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER+CORE+WIFI+HTTP_UPDATE+UPDATER+OTA+OOM
1163+
inventone.menu.lvl.SSLTLS_MEMHTTP_CLIENTHTTP_SERVERCOREWIFIHTTP_UPDATEUPDATEROTAOOM.build.debug_level= -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_OOM
1164+
inventone.menu.lvl.NoAssert-NDEBUG=NoAssert-NDEBUG
1165+
inventone.menu.lvl.NoAssert-NDEBUG.build.debug_level= -DNDEBUG
1166+
inventone.menu.wipe.none=Only Sketch
1167+
inventone.menu.wipe.none.upload.erase_cmd=
1168+
inventone.menu.wipe.sdk=Sketch + WiFi Settings
1169+
inventone.menu.wipe.sdk.upload.erase_cmd=-ca "{build.rfcal_addr}" -cz 0x4000
1170+
inventone.menu.wipe.all=All Flash Contents
1171+
inventone.menu.wipe.all.upload.erase_cmd=-ca 0x0 -cz "{build.flash_size_bytes}"
1172+
inventone.menu.baud.115200=115200
1173+
inventone.menu.baud.115200.upload.speed=115200
1174+
inventone.menu.baud.9600=9600
1175+
inventone.menu.baud.9600.upload.speed=9600
1176+
inventone.menu.baud.57600=57600
1177+
inventone.menu.baud.57600.upload.speed=57600
1178+
inventone.menu.baud.230400.linux=230400
1179+
inventone.menu.baud.230400.macosx=230400
1180+
inventone.menu.baud.230400.upload.speed=230400
1181+
inventone.menu.baud.256000.windows=256000
1182+
inventone.menu.baud.256000.upload.speed=256000
1183+
inventone.menu.baud.460800.linux=460800
1184+
inventone.menu.baud.460800.macosx=460800
1185+
inventone.menu.baud.460800.upload.speed=460800
1186+
inventone.menu.baud.512000.windows=512000
1187+
inventone.menu.baud.512000.upload.speed=512000
1188+
inventone.menu.baud.921600=921600
1189+
inventone.menu.baud.921600.upload.speed=921600
1190+
10221191
##############################################################
10231192
cw01.name=XinaBox CW01
10241193
cw01.build.board=ESP8266_GENERIC

Diff for: doc/boards.rst

+7
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ The Adafruit Feather HUZZAH ESP8266 is an Arduino-compatible Wi-Fi development b
219219

220220
Product page: https://www.adafruit.com/product/2821
221221

222+
Invent One
223+
----------
224+
225+
The Invent One is an Arduino-compatible Wi-Fi development board powered by Ai-Thinker's ESP-12F, clocked at 80 MHz at 3.3V logic. It has an onboard ADC (PCF8591) so that you can have multiple analog inputs to work with. More information can be found here: https://blog.inventone.ng
226+
227+
Product page: https://inventone.ng
228+
222229
XinaBox CW01
223230
------------
224231

Diff for: package/package_esp8266com_index.template.json

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
{
3333
"name": "Adafruit Feather HUZZAH ESP8266"
3434
},
35+
{
36+
"name": "Invent One"
37+
},
3538
{
3639
"name": "XinaBox CW01"
3740
},

Diff for: tools/boards.txt.py

+17
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,23 @@
325325
'',
326326
'Product page: https://www.adafruit.com/product/2821'
327327
],
328+
}),
329+
( 'inventone', {
330+
'name': 'Invent One',
331+
'opts': {
332+
'.build.board': 'ESP8266_GENERIC',
333+
'.build.variant': 'inventone',
334+
},
335+
'macro': [
336+
'resetmethod_nodemcu',
337+
'flashmode_dio',
338+
'flashfreq_40',
339+
'4M',
340+
],
341+
'desc': [ 'The Invent One is an Arduino-compatible Wi-Fi development board powered by Ai-Thinker\'s ESP-12F, clocked at 80 MHz at 3.3V logic. It has an onboard ADC (PCF8591) so that you can have multiple analog inputs to work with. More information can be found here: https://blog.inventone.ng',
342+
'',
343+
'Product page: https://inventone.ng'
344+
],
328345
}),
329346
( 'cw01', {
330347
'name': 'XinaBox CW01',

Diff for: variants/inventone/pins_arduino.h

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
pins_arduino.h - Pin definition functions for Arduino
3+
Part of Arduino - http://www.arduino.cc/
4+
5+
Copyright (c) 2007 David A. Mellis
6+
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
7+
8+
This library is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU Lesser General Public
10+
License as published by the Free Software Foundation; either
11+
version 2.1 of the License, or (at your option) any later version.
12+
13+
This library is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General
19+
Public License along with this library; if not, write to the
20+
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21+
Boston, MA 02111-1307 USA
22+
23+
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
24+
*/
25+
26+
#ifndef Pins_Arduino_h
27+
#define Pins_Arduino_h
28+
29+
#define PIN_WIRE_SDA (2)
30+
#define PIN_WIRE_SCL (14)
31+
32+
static const uint8_t SDA = PIN_WIRE_SDA;
33+
static const uint8_t SCL = PIN_WIRE_SCL;
34+
35+
#define LED_BUILTIN 2
36+
37+
static const uint8_t D1 = 15;
38+
static const uint8_t D2 = 0;
39+
static const uint8_t D3 = 14;
40+
static const uint8_t D4 = 2;
41+
static const uint8_t D5 = 5;
42+
static const uint8_t D6 = 4;
43+
static const uint8_t D7 = 13;
44+
static const uint8_t D8 = 12;
45+
static const uint8_t D9 = 16;
46+
static const uint8_t RX = 3;
47+
static const uint8_t TX = 1;
48+
static const uint8_t A0 = 0;
49+
/*Analog pins for Onboard ADC*/
50+
static const uint8_t A1 = 1;
51+
static const uint8_t A2 = 2;
52+
static const uint8_t A3 = 3;
53+
static const uint8_t A4 = 4;
54+
55+
#include "../generic/common.h"
56+
57+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)