Skip to content

Commit 32c028a

Browse files
arcaome-no-dev
authored andcommitted
espressif#334: Update boards.txt for Onehorse's ESP32 Dev Module (espressif#337)
1 parent a95b1fd commit 32c028a

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

boards.txt

+41
Original file line numberDiff line numberDiff line change
@@ -504,3 +504,44 @@ intorobot-fig.menu.UploadSpeed.460800.macosx=460800
504504
intorobot-fig.menu.UploadSpeed.460800.upload.speed=460800
505505
intorobot-fig.menu.UploadSpeed.512000.windows=512000
506506
intorobot-fig.menu.UploadSpeed.512000.upload.speed=512000
507+
508+
##############################################################
509+
510+
onehorse32dev.name=Onehorse ESP32 Dev Module
511+
512+
onehorse32dev.upload.tool=esptool
513+
onehorse32dev.upload.maximum_size=1044464
514+
onehorse32dev.upload.maximum_data_size=294912
515+
onehorse32dev.upload.wait_for_upload_port=true
516+
517+
onehorse32dev.serial.disableDTR=true
518+
onehorse32dev.serial.disableRTS=true
519+
520+
onehorse32dev.build.mcu=esp32
521+
onehorse32dev.build.core=esp32
522+
onehorse32dev.build.variant=onehorse32dev
523+
onehorse32dev.build.board=ONEHORSE_ESP32_DEV
524+
525+
onehorse32dev.build.f_cpu=240000000L
526+
onehorse32dev.build.flash_mode=dout
527+
onehorse32dev.build.flash_size=4MB
528+
529+
onehorse32dev.menu.FlashFreq.80=80MHz
530+
onehorse32dev.menu.FlashFreq.80.build.flash_freq=80m
531+
onehorse32dev.menu.FlashFreq.40=40MHz
532+
onehorse32dev.menu.FlashFreq.40.build.flash_freq=40m
533+
534+
onehorse32dev.menu.UploadSpeed.921600=921600
535+
onehorse32dev.menu.UploadSpeed.921600.upload.speed=921600
536+
onehorse32dev.menu.UploadSpeed.115200=115200
537+
onehorse32dev.menu.UploadSpeed.115200.upload.speed=115200
538+
onehorse32dev.menu.UploadSpeed.256000.windows=256000
539+
onehorse32dev.menu.UploadSpeed.256000.upload.speed=256000
540+
onehorse32dev.menu.UploadSpeed.230400.windows.upload.speed=256000
541+
onehorse32dev.menu.UploadSpeed.230400=230400
542+
onehorse32dev.menu.UploadSpeed.230400.upload.speed=230400
543+
onehorse32dev.menu.UploadSpeed.460800.linux=460800
544+
onehorse32dev.menu.UploadSpeed.460800.macosx=460800
545+
onehorse32dev.menu.UploadSpeed.460800.upload.speed=460800
546+
onehorse32dev.menu.UploadSpeed.512000.windows=512000
547+
onehorse32dev.menu.UploadSpeed.512000.upload.speed=512000

variants/onehorse32dev/pins_arduino.h

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
static const uint8_t LED_BUILTIN = 5;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t KEY_BUILTIN = 0;
18+
19+
static const uint8_t TX = 1;
20+
static const uint8_t RX = 3;
21+
22+
static const uint8_t SDA = 21;
23+
static const uint8_t SCL = 22;
24+
25+
static const uint8_t SS = 5;
26+
static const uint8_t MOSI = 23;
27+
static const uint8_t MISO = 19;
28+
static const uint8_t SCK = 18;
29+
30+
static const uint8_t A0 = 36;
31+
static const uint8_t A1 = 37;
32+
static const uint8_t A2 = 38;
33+
static const uint8_t A3 = 39;
34+
static const uint8_t A6 = 34;
35+
static const uint8_t A7 = 35;
36+
static const uint8_t A10 = 4;
37+
static const uint8_t A11 = 0;
38+
static const uint8_t A12 = 2;
39+
static const uint8_t A13 = 15;
40+
static const uint8_t A14 = 13;
41+
static const uint8_t A15 = 12;
42+
static const uint8_t A16 = 14;
43+
static const uint8_t A17 = 27;
44+
static const uint8_t A18 = 25;
45+
static const uint8_t A19 = 26;
46+
47+
static const uint8_t T0 = 4;
48+
static const uint8_t T1 = 0;
49+
static const uint8_t T2 = 2;
50+
static const uint8_t T3 = 15;
51+
static const uint8_t T4 = 13;
52+
static const uint8_t T5 = 12;
53+
static const uint8_t T6 = 14;
54+
static const uint8_t T7 = 27;
55+
56+
static const uint8_t DAC1 = 25;
57+
static const uint8_t DAC2 = 26;
58+
59+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)