diff --git a/boards.txt b/boards.txt index 6bd05c725f..665984ed52 100644 --- a/boards.txt +++ b/boards.txt @@ -1119,6 +1119,82 @@ thing.menu.UploadSpeed.921600=921600 thing.menu.UploadSpeed.921600.upload.speed=921600 ############################################################## + + + + + +############################################################## +my.name=MyBoard + +my.upload.tool=esptool +my.upload.speed=115200 +my.upload.resetmethod=nodemcu +my.upload.maximum_size=1044464 +my.upload.maximum_data_size=81920 +my.upload.wait_for_upload_port=true +my.serial.disableDTR=true +my.serial.disableRTS=true + +my.build.mcu=esp8266 +my.build.f_cpu=80000000L +my.build.board=ESP8266_NODEMCU +my.build.core=esp8266 +my.build.variant=My_Board +my.build.flash_mode=dio +my.build.flash_size=4M +my.build.flash_freq=40 +my.build.debug_port= +my.build.debug_level= + +my.menu.CpuFrequency.80=80 MHz +my.menu.CpuFrequency.80.build.f_cpu=80000000L +my.menu.CpuFrequency.160=160 MHz +my.menu.CpuFrequency.160.build.f_cpu=160000000L + +my.menu.UploadSpeed.115200=115200 +my.menu.UploadSpeed.115200.upload.speed=115200 +my.menu.UploadSpeed.9600=9600 +my.menu.UploadSpeed.9600.upload.speed=9600 +my.menu.UploadSpeed.57600=57600 +my.menu.UploadSpeed.57600.upload.speed=57600 +my.menu.UploadSpeed.256000.windows=256000 +my.menu.UploadSpeed.256000.upload.speed=256000 +my.menu.UploadSpeed.230400.linux=230400 +my.menu.UploadSpeed.230400.macosx=230400 +my.menu.UploadSpeed.230400.macosx=230400 +my.menu.UploadSpeed.230400.upload.speed=230400 +my.menu.UploadSpeed.460800.linux=460800 +my.menu.UploadSpeed.460800.macosx=460800 +my.menu.UploadSpeed.460800.upload.speed=460800 +my.menu.UploadSpeed.512000.windows=512000 +my.menu.UploadSpeed.512000.upload.speed=512000 +my.menu.UploadSpeed.921600=921600 +my.menu.UploadSpeed.921600.upload.speed=921600 + +my.menu.FlashSize.4M3M=4M (3M SPIFFS) +my.menu.FlashSize.4M3M.build.flash_size=4M +my.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld +my.menu.FlashSize.4M3M.build.spiffs_start=0x100000 +my.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000 +my.menu.FlashSize.4M3M.build.spiffs_blocksize=8192 +my.menu.FlashSize.4M3M.build.spiffs_pagesize=256 + +my.menu.FlashSize.4M1M=4M (1M SPIFFS) +my.menu.FlashSize.4M1M.build.flash_size=4M +my.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld +my.menu.FlashSize.4M1M.build.spiffs_start=0x300000 +my.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000 +my.menu.FlashSize.4M1M.build.spiffs_blocksize=8192 +my.menu.FlashSize.4M1M.build.spiffs_pagesize=256 + + +############################################################## + + + + + thingdev.name=SparkFun ESP8266 Thing Dev thingdev.upload.tool=esptool diff --git a/variants/My_Board/pins_arduino.h b/variants/My_Board/pins_arduino.h new file mode 100644 index 0000000000..ca3e97b970 --- /dev/null +++ b/variants/My_Board/pins_arduino.h @@ -0,0 +1,38 @@ +/* + pins_arduino.h - Pin definition functions for Arduino + Part of Arduino - http://www.arduino.cc/ + + Copyright (c) 2007 David A. Mellis + Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General + Public License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, + Boston, MA 02111-1307 USA + + $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $ +*/ + +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#include "../generic/common.h" + +static const uint8_t SDA = 4; +static const uint8_t SCL = 5; + +static const uint8_t BUILTIN_LED1 = 13; +static const uint8_t BUILTIN_LED2 = 2; +static const uint8_t SAMPLE = 12; + +#endif /* Pins_Arduino_h */