Skip to content

Commit f9d1b24

Browse files
Stanimir-Petevme-no-dev
authored andcommitted
Added Olimex board ESP32-PoE. pins_arduino header file based on the ESP32-EVB with changed SS pin and removed BOARD_HAS_1BIT_SDMMC macro.
1 parent c7fa251 commit f9d1b24

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

boards.txt

+33
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,39 @@ esp32-gateway.menu.UploadSpeed.115200.upload.speed=115200
16651665

16661666
##############################################################
16671667

1668+
esp32-poe.name=OLIMEX ESP32-PoE
1669+
1670+
esp32-poe.upload.tool=esptool
1671+
esp32-poe.upload.maximum_size=1310720
1672+
esp32-poe.upload.maximum_data_size=327680
1673+
esp32-poe.upload.wait_for_upload_port=true
1674+
1675+
esp32-poe.serial.disableDTR=true
1676+
esp32-poe.serial.disableRTS=true
1677+
1678+
esp32-poe.build.mcu=esp32
1679+
esp32-poe.build.core=esp32
1680+
esp32-poe.build.variant=esp32-poe
1681+
esp32-poe.build.board=ESP32_POE
1682+
1683+
esp32-poe.build.f_cpu=240000000L
1684+
esp32-poe.build.flash_mode=dio
1685+
esp32-poe.build.flash_size=4MB
1686+
esp32-poe.build.boot=dio
1687+
esp32-poe.build.partitions=default
1688+
esp32-poe.build.defines=
1689+
1690+
esp32-poe.menu.FlashFreq.80=80MHz
1691+
esp32-poe.menu.FlashFreq.80.build.flash_freq=80m
1692+
esp32-poe.menu.FlashFreq.40=40MHz
1693+
esp32-poe.menu.FlashFreq.40.build.flash_freq=40m
1694+
1695+
1696+
esp32-poe.menu.UploadSpeed.115200=115200
1697+
esp32-poe.menu.UploadSpeed.115200.upload.speed=115200
1698+
1699+
##############################################################
1700+
16681701
espino32.name=ThaiEasyElec's ESPino32
16691702

16701703
espino32.upload.tool=esptool

variants/esp32-poe/pins_arduino.h

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
15+
static const uint8_t KEY_BUILTIN = 34;
16+
17+
static const uint8_t TX = 1;
18+
static const uint8_t RX = 3;
19+
20+
static const uint8_t SDA = 13;
21+
static const uint8_t SCL = 16;
22+
23+
static const uint8_t SS = 5;
24+
static const uint8_t MOSI = 2;
25+
static const uint8_t MISO = 15;
26+
static const uint8_t SCK = 14;
27+
28+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)