Skip to content

Commit

Permalink
Add new boards Phoenix 1.0 & Phoenix 2.0 (esp8266#2088)
Browse files Browse the repository at this point in the history
* Add new boards Phoenix 1.0, Phoenix 2.0

* ESP8266HTTPClient: fix duplicate Content-Length headers (esp8266#1902)

* Add new boards Phoenix 1.0, Phoenix 2.0

* Add phoenix in variants.
  • Loading branch information
nazt authored and igrr committed Jun 6, 2016
1 parent 2f933e2 commit 222e92a
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 0 deletions.
210 changes: 210 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,216 @@ espresso_lite_v2.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DD
espresso_lite_v2.build.debug_port=
espresso_lite_v2.build.debug_level=

##############################################################
phoenix_v1.name=Phoenix 1.0
phoenix_v1.upload.tool=esptool
phoenix_v1.upload.speed=115200
phoenix_v1.upload.maximum_size=1044464
phoenix_v1.upload.maximum_data_size=81920
phoenix_v1.upload.wait_for_upload_port=true

phoenix_v1.build.mcu=esp8266
phoenix_v1.build.f_cpu=80000000L
phoenix_v1.build.board=ESP8266_PHOENIX_V1
phoenix_v1.build.core=esp8266
phoenix_v1.build.variant=phoenix_v1
phoenix_v1.build.flash_mode=dio
phoenix_v1.build.flash_size=4M
phoenix_v1.build.flash_freq=40

phoenix_v1.menu.CpuFrequency.80=80 MHz
phoenix_v1.menu.CpuFrequency.80.build.f_cpu=80000000L
phoenix_v1.menu.CpuFrequency.160=160 MHz
phoenix_v1.menu.CpuFrequency.160.build.f_cpu=160000000L

phoenix_v1.menu.UploadSpeed.115200=115200
phoenix_v1.menu.UploadSpeed.115200.upload.speed=115200
phoenix_v1.menu.UploadSpeed.57600=57600
phoenix_v1.menu.UploadSpeed.57600.upload.speed=57600
phoenix_v1.menu.UploadSpeed.256000.windows=256000
phoenix_v1.menu.UploadSpeed.256000.upload.speed=256000
phoenix_v1.menu.UploadSpeed.230400.linux=230400
phoenix_v1.menu.UploadSpeed.230400.macosx=230400
phoenix_v1.menu.UploadSpeed.230400.macosx=230400
phoenix_v1.menu.UploadSpeed.230400.upload.speed=230400
phoenix_v1.menu.UploadSpeed.460800.linux=460800
phoenix_v1.menu.UploadSpeed.460800.macosx=460800
phoenix_v1.menu.UploadSpeed.460800.upload.speed=460800
phoenix_v1.menu.UploadSpeed.512000.windows=512000
phoenix_v1.menu.UploadSpeed.512000.upload.speed=512000
phoenix_v1.menu.UploadSpeed.921600=921600
phoenix_v1.menu.UploadSpeed.921600.upload.speed=921600

phoenix_v1.menu.FlashSize.4M3M=4M (3M SPIFFS)
phoenix_v1.menu.FlashSize.4M3M.build.flash_size=4M
phoenix_v1.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld
phoenix_v1.menu.FlashSize.4M3M.build.spiffs_start=0x100000
phoenix_v1.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
phoenix_v1.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
phoenix_v1.menu.FlashSize.4M3M.upload.maximum_size=1044464

phoenix_v1.menu.FlashSize.4M1M=4M (1M SPIFFS)
phoenix_v1.menu.FlashSize.4M1M.build.flash_size=4M
phoenix_v1.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld
phoenix_v1.menu.FlashSize.4M1M.build.spiffs_start=0x300000
phoenix_v1.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
phoenix_v1.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
phoenix_v1.menu.FlashSize.4M1M.build.spiffs_pagesize=256
phoenix_v1.menu.FlashSize.4M1M.upload.maximum_size=1044464

phoenix_v1.menu.ResetMethod.nodemcu=nodemcu
phoenix_v1.menu.ResetMethod.nodemcu.upload.resetmethod=nodemcu
phoenix_v1.menu.ResetMethod.ck=ck
phoenix_v1.menu.ResetMethod.ck.upload.resetmethod=ck

phoenix_v1.menu.Debug.Disabled=Disabled
phoenix_v1.menu.Debug.Disabled.build.debug_port=
phoenix_v1.menu.Debug.Serial=Serial
phoenix_v1.menu.Debug.Serial.build.debug_port=-DDEBUG_ESP_PORT=Serial
phoenix_v1.menu.Debug.Serial1=Serial1
phoenix_v1.menu.Debug.Serial1.build.debug_port=-DDEBUG_ESP_PORT=Serial1

phoenix_v1.menu.DebugLevel.None____=None
phoenix_v1.menu.DebugLevel.None____.build.debug_level=
phoenix_v1.menu.DebugLevel.Core____=Core
phoenix_v1.menu.DebugLevel.Core____.build.debug_level=-DDEBUG_ESP_CORE
phoenix_v1.menu.DebugLevel.SSL_____=Core + SSL
phoenix_v1.menu.DebugLevel.SSL_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL
phoenix_v1.menu.DebugLevel.SSL_MEM_=Core + SSL + TLS Mem
phoenix_v1.menu.DebugLevel.SSL_MEM_.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_TLS_MEM
phoenix_v1.menu.DebugLevel.WiFic___=Core + WiFi
phoenix_v1.menu.DebugLevel.WiFic___.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI
phoenix_v1.menu.DebugLevel.WiFi____=WiFi
phoenix_v1.menu.DebugLevel.WiFi____.build.debug_level=-DDEBUG_ESP_WIFI
phoenix_v1.menu.DebugLevel.HTTPClient=HTTPClient
phoenix_v1.menu.DebugLevel.HTTPClient.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT
phoenix_v1.menu.DebugLevel.HTTPClient2=HTTPClient + SSL
phoenix_v1.menu.DebugLevel.HTTPClient2.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_SSL
phoenix_v1.menu.DebugLevel.HTTPUpdate=HTTPUpdate
phoenix_v1.menu.DebugLevel.HTTPUpdate.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE
phoenix_v1.menu.DebugLevel.HTTPUpdate2=HTTPClient + HTTPUpdate
phoenix_v1.menu.DebugLevel.HTTPUpdate2.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_UPDATE
phoenix_v1.menu.DebugLevel.HTTPUpdate3=HTTPClient + HTTPUpdate + Updater
phoenix_v1.menu.DebugLevel.HTTPUpdate3.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER
phoenix_v1.menu.DebugLevel.HTTPServer=HTTPServer
phoenix_v1.menu.DebugLevel.HTTPServer.build.debug_level=-DDEBUG_ESP_HTTP_SERVER
phoenix_v1.menu.DebugLevel.UPDATER=Updater
phoenix_v1.menu.DebugLevel.UPDATER.build.debug_level=-DDEBUG_ESP_UPDATER
phoenix_v1.menu.DebugLevel.OTA_____=OTA
phoenix_v1.menu.DebugLevel.OTA_____.build.debug_level=-DDEBUG_ESP_OTA
phoenix_v1.menu.DebugLevel.OTA2____=OTA + Updater
phoenix_v1.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_UPDATER
phoenix_v1.menu.DebugLevel.all_____=All
phoenix_v1.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM

phoenix_v1.build.debug_port=
phoenix_v1.build.debug_level=

##############################################################
phoenix_v2.name=Phoenix 2.0
phoenix_v2.upload.tool=esptool
phoenix_v2.upload.speed=115200
phoenix_v2.upload.maximum_size=1044464
phoenix_v2.upload.maximum_data_size=81920
phoenix_v2.upload.wait_for_upload_port=true

phoenix_v2.build.mcu=esp8266
phoenix_v2.build.f_cpu=80000000L
phoenix_v2.build.board=ESP8266_PHOENIX_V2
phoenix_v2.build.core=esp8266
phoenix_v2.build.variant=phoenix_v2
phoenix_v2.build.flash_mode=dio
phoenix_v2.build.flash_size=4M
phoenix_v2.build.flash_freq=40

phoenix_v2.menu.CpuFrequency.80=80 MHz
phoenix_v2.menu.CpuFrequency.80.build.f_cpu=80000000L
phoenix_v2.menu.CpuFrequency.160=160 MHz
phoenix_v2.menu.CpuFrequency.160.build.f_cpu=160000000L

phoenix_v2.menu.UploadSpeed.115200=115200
phoenix_v2.menu.UploadSpeed.115200.upload.speed=115200
phoenix_v2.menu.UploadSpeed.57600=57600
phoenix_v2.menu.UploadSpeed.57600.upload.speed=57600
phoenix_v2.menu.UploadSpeed.256000.windows=256000
phoenix_v2.menu.UploadSpeed.256000.upload.speed=256000
phoenix_v2.menu.UploadSpeed.230400.linux=230400
phoenix_v2.menu.UploadSpeed.230400.macosx=230400
phoenix_v2.menu.UploadSpeed.230400.macosx=230400
phoenix_v2.menu.UploadSpeed.230400.upload.speed=230400
phoenix_v2.menu.UploadSpeed.460800.linux=460800
phoenix_v2.menu.UploadSpeed.460800.macosx=460800
phoenix_v2.menu.UploadSpeed.460800.upload.speed=460800
phoenix_v2.menu.UploadSpeed.512000.windows=512000
phoenix_v2.menu.UploadSpeed.512000.upload.speed=512000
phoenix_v2.menu.UploadSpeed.921600=921600
phoenix_v2.menu.UploadSpeed.921600.upload.speed=921600

phoenix_v2.menu.FlashSize.4M3M=4M (3M SPIFFS)
phoenix_v2.menu.FlashSize.4M3M.build.flash_size=4M
phoenix_v2.menu.FlashSize.4M3M.build.flash_ld=eagle.flash.4m.ld
phoenix_v2.menu.FlashSize.4M3M.build.spiffs_start=0x100000
phoenix_v2.menu.FlashSize.4M3M.build.spiffs_end=0x3FB000
phoenix_v2.menu.FlashSize.4M3M.build.spiffs_blocksize=8192
phoenix_v2.menu.FlashSize.4M3M.upload.maximum_size=1044464

phoenix_v2.menu.FlashSize.4M1M=4M (1M SPIFFS)
phoenix_v2.menu.FlashSize.4M1M.build.flash_size=4M
phoenix_v2.menu.FlashSize.4M1M.build.flash_ld=eagle.flash.4m1m.ld
phoenix_v2.menu.FlashSize.4M1M.build.spiffs_start=0x300000
phoenix_v2.menu.FlashSize.4M1M.build.spiffs_end=0x3FB000
phoenix_v2.menu.FlashSize.4M1M.build.spiffs_blocksize=8192
phoenix_v2.menu.FlashSize.4M1M.build.spiffs_pagesize=256
phoenix_v2.menu.FlashSize.4M1M.upload.maximum_size=1044464

phoenix_v2.menu.ResetMethod.ck=ck
phoenix_v2.menu.ResetMethod.ck.upload.resetmethod=ck
phoenix_v2.menu.ResetMethod.nodemcu=nodemcu
phoenix_v2.menu.ResetMethod.nodemcu.upload.resetmethod=nodemcu

phoenix_v2.menu.Debug.Disabled=Disabled
phoenix_v2.menu.Debug.Disabled.build.debug_port=
phoenix_v2.menu.Debug.Serial=Serial
phoenix_v2.menu.Debug.Serial.build.debug_port=-DDEBUG_ESP_PORT=Serial
phoenix_v2.menu.Debug.Serial1=Serial1
phoenix_v2.menu.Debug.Serial1.build.debug_port=-DDEBUG_ESP_PORT=Serial1

phoenix_v2.menu.DebugLevel.None____=None
phoenix_v2.menu.DebugLevel.None____.build.debug_level=
phoenix_v2.menu.DebugLevel.Core____=Core
phoenix_v2.menu.DebugLevel.Core____.build.debug_level=-DDEBUG_ESP_CORE
phoenix_v2.menu.DebugLevel.SSL_____=Core + SSL
phoenix_v2.menu.DebugLevel.SSL_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL
phoenix_v2.menu.DebugLevel.SSL_MEM_=Core + SSL + TLS Mem
phoenix_v2.menu.DebugLevel.SSL_MEM_.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_TLS_MEM
phoenix_v2.menu.DebugLevel.WiFic___=Core + WiFi
phoenix_v2.menu.DebugLevel.WiFic___.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI
phoenix_v2.menu.DebugLevel.WiFi____=WiFi
phoenix_v2.menu.DebugLevel.WiFi____.build.debug_level=-DDEBUG_ESP_WIFI
phoenix_v2.menu.DebugLevel.HTTPClient=HTTPClient
phoenix_v2.menu.DebugLevel.HTTPClient.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT
phoenix_v2.menu.DebugLevel.HTTPClient2=HTTPClient + SSL
phoenix_v2.menu.DebugLevel.HTTPClient2.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_SSL
phoenix_v2.menu.DebugLevel.HTTPUpdate=HTTPUpdate
phoenix_v2.menu.DebugLevel.HTTPUpdate.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE
phoenix_v2.menu.DebugLevel.HTTPUpdate2=HTTPClient + HTTPUpdate
phoenix_v2.menu.DebugLevel.HTTPUpdate2.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_UPDATE
phoenix_v2.menu.DebugLevel.HTTPUpdate3=HTTPClient + HTTPUpdate + Updater
phoenix_v2.menu.DebugLevel.HTTPUpdate3.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER
phoenix_v2.menu.DebugLevel.HTTPServer=HTTPServer
phoenix_v2.menu.DebugLevel.HTTPServer.build.debug_level=-DDEBUG_ESP_HTTP_SERVER
phoenix_v2.menu.DebugLevel.UPDATER=Updater
phoenix_v2.menu.DebugLevel.UPDATER.build.debug_level=-DDEBUG_ESP_UPDATER
phoenix_v2.menu.DebugLevel.OTA_____=OTA
phoenix_v2.menu.DebugLevel.OTA_____.build.debug_level=-DDEBUG_ESP_OTA
phoenix_v2.menu.DebugLevel.OTA2____=OTA + Updater
phoenix_v2.menu.DebugLevel.OTA2____.build.debug_level=-DDEBUG_ESP_OTA -DDEBUG_ESP_UPDATER
phoenix_v2.menu.DebugLevel.all_____=All
phoenix_v2.menu.DebugLevel.all_____.build.debug_level=-DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM

phoenix_v2.build.debug_port=
phoenix_v2.build.debug_level=

##############################################################
nodemcu.name=NodeMCU 0.9 (ESP-12 Module)

Expand Down
9 changes: 9 additions & 0 deletions doc/boards.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ title: Supported Hardware
* [Olimex MOD\-WIFI\-ESP8266\-DEV](#olimex-mod-wifi-esp8266-dev)
* [Olimex MOD\-WIFI\-ESP8266](#olimex-mod-wifi-esp8266)
* [Olimex ESP8266\-EVB](#olimex-esp8266-evb)
* [Phoenix 1\.0](#phoenix-10)
* [Phoenix 2\.0](#phoenix-20)
* [SparkFun ESP8266 Thing](#sparkfun-esp8266-thing)
* [SweetPea ESP\-210](#sweetpea-esp-210)
* [ESPino](#espino)
Expand Down Expand Up @@ -44,6 +46,13 @@ ESPresso Lite 1.0 (beta version) is an Arduino-compatible Wi-Fi development boar

ESPresso Lite 2.0 is an Arduino-compatible Wi-Fi development board based on an earlier V1 (beta version). Re-designed together with Cytron Technologies, the newly-revised ESPresso Lite V2.0 features the auto-load/auto-program function, eliminating the previous need to reset the board manually before flashing a new program. It also feature two user programmable side buttons and a reset button. The special distinctive features of on-board pads for I2C sensor and actuator is retained.

## Phoenix 1.0

Product page: http://www.espert.co

## Phoenix 2.0

Product page: http://www.espert.co

## NodeMCU 0.9

Expand Down
6 changes: 6 additions & 0 deletions package/package_esp8266com_index.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
{
"name": "ESPresso Lite 2.0"
},
{
"name": "Phoenix 1.0"
},
{
"name": "Phoenix 2.0"
},
{
"name": "SparkFun Thing"
},
Expand Down
39 changes: 39 additions & 0 deletions variants/phoenix_v1/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
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"

#define PHOENIX_VERSION 1

static const uint8_t SDA = 4;
static const uint8_t SCL = 5;

static const uint8_t LED_BUILTIN = 16;
static const uint8_t BUILTIN_LED = 16;

#endif /* Pins_Arduino_h */
39 changes: 39 additions & 0 deletions variants/phoenix_v2/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
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"

#define PHOENIX_VERSION 2

static const uint8_t SDA = 4;
static const uint8_t SCL = 5;

static const uint8_t LED_BUILTIN = 2;
static const uint8_t BUILTIN_LED = 2;

#endif /* Pins_Arduino_h */

0 comments on commit 222e92a

Please sign in to comment.