Skip to content

Commit 2f0281b

Browse files
committed
Add definition for the Olimex MOD-WIFI-ESP8266(-DEV) boards
1 parent a39618f commit 2f0281b

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed

boards.txt

+50
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
menu.UploadSpeed=Upload Speed
22
menu.CpuFrequency=CPU Frequency
33
menu.FlashSize=Flash size
4+
45
##############################################################
56
generic.name=Generic ESP8266 Module
67

@@ -56,6 +57,55 @@ generic.menu.FlashSize.2M.build.flash_size=2M
5657
generic.menu.FlashSize.4M=4M
5758
generic.menu.FlashSize.4M.build.flash_size=4M
5859

60+
##############################################################
61+
modwifi.name=Olimex MOD-WIFI-ESP8266(-DEV)
62+
63+
modwifi.upload.tool=esptool
64+
modwifi.upload.speed=115200
65+
modwifi.upload.resetmethod=ck
66+
modwifi.upload.maximum_size=2097152
67+
modwifi.upload.wait_for_upload_port=true
68+
modwifi.serial.disableDTR=true
69+
modwifi.serial.disableRTS=true
70+
71+
modwifi.build.mcu=esp8266
72+
modwifi.build.f_cpu=80000000L
73+
modwifi.build.board=MOD_WIFI_ESP8266
74+
modwifi.build.core=esp8266
75+
modwifi.build.variant=modwifi
76+
# Winbond W25Q16 flash
77+
modwifi.build.flash_mode=qio
78+
modwifi.build.flash_size=2M
79+
modwifi.build.flash_freq=40
80+
81+
modwifi.menu.CpuFrequency.80=80 MHz
82+
modwifi.menu.CpuFrequency.80.build.f_cpu=80000000L
83+
modwifi.menu.CpuFrequency.160=160 MHz
84+
modwifi.menu.CpuFrequency.160.build.f_cpu=160000000L
85+
86+
modwifi.menu.UploadSpeed.115200=115200
87+
modwifi.menu.UploadSpeed.115200.upload.speed=115200
88+
modwifi.menu.UploadSpeed.9600=9600
89+
modwifi.menu.UploadSpeed.9600.upload.speed=9600
90+
modwifi.menu.UploadSpeed.57600=57600
91+
modwifi.menu.UploadSpeed.57600.upload.speed=57600
92+
modwifi.menu.UploadSpeed.256000.windows=256000
93+
modwifi.menu.UploadSpeed.256000.upload.speed=256000
94+
modwifi.menu.UploadSpeed.230400.linux=230400
95+
modwifi.menu.UploadSpeed.230400.macosx=230400
96+
modwifi.menu.UploadSpeed.230400.macosx=230400
97+
modwifi.menu.UploadSpeed.230400.upload.speed=230400
98+
modwifi.menu.UploadSpeed.460800.linux=460800
99+
modwifi.menu.UploadSpeed.460800.macosx=460800
100+
modwifi.menu.UploadSpeed.460800.upload.speed=460800
101+
modwifi.menu.UploadSpeed.512000.windows=512000
102+
modwifi.menu.UploadSpeed.512000.upload.speed=512000
103+
modwifi.menu.UploadSpeed.921600=921600
104+
modwifi.menu.UploadSpeed.921600.upload.speed=921600
105+
106+
modwifi.menu.FlashSize.2M=2M
107+
modwifi.menu.FlashSize.2M.build.flash_size=2M
108+
59109
##############################################################
60110
nodemcu.name=NodeMCU (ESP8266 ESP-12 Module)
61111

variants/modwifi/pins_arduino.h

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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 EXTERNAL_NUM_INTERRUPTS 16
30+
#define NUM_DIGITAL_PINS 17
31+
#define NUM_ANALOG_INPUTS 1
32+
33+
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
34+
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
35+
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)
36+
37+
static const uint8_t SDA = 4;
38+
static const uint8_t SCL = 5;
39+
40+
static const uint8_t SS = 15;
41+
static const uint8_t MOSI = 13;
42+
static const uint8_t MISO = 12;
43+
static const uint8_t SCK = 14;
44+
45+
static const uint8_t A0 = 17;
46+
47+
// These serial port names are intended to allow libraries and architecture-neutral
48+
// sketches to automatically default to the correct port name for a particular type
49+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
50+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
51+
//
52+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
53+
//
54+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
55+
//
56+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
57+
//
58+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
59+
//
60+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
61+
// pins are NOT connected to anything by default.
62+
#define SERIAL_PORT_MONITOR Serial
63+
#define SERIAL_PORT_USBVIRTUAL Serial
64+
#define SERIAL_PORT_HARDWARE Serial
65+
#define SERIAL_PORT_HARDWARE_OPEN Serial
66+
67+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)