Skip to content

Commit 365a0d8

Browse files
Xplorer001me-no-dev
authored andcommitted
created board defination and pin layout for ExploreEmbedded Hornbill dev and Minima boards (#131)
* created board defination and pin layout for hornbill dev and minima * change in pin mapping
1 parent cefbf25 commit 365a0d8

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

boards.txt

+76
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,79 @@ node32s.menu.UploadSpeed.460800.macosx=460800
280280
node32s.menu.UploadSpeed.460800.upload.speed=460800
281281
node32s.menu.UploadSpeed.512000.windows=512000
282282
node32s.menu.UploadSpeed.512000.upload.speed=512000
283+
##############################################################
284+
hornbill32dev.name=Hornbill ESP32 Dev
285+
286+
hornbill32dev.upload.tool=esptool
287+
hornbill32dev.upload.maximum_size=1044464
288+
hornbill32dev.upload.maximum_data_size=294912
289+
hornbill32dev.upload.wait_for_upload_port=true
290+
291+
hornbill32dev.serial.disableDTR=true
292+
hornbill32dev.serial.disableRTS=true
293+
294+
hornbill32dev.build.mcu=esp32
295+
hornbill32dev.build.core=esp32
296+
hornbill32dev.build.variant=hornbill32dev
297+
hornbill32dev.build.board=HORNBILL_ESP32_DEV
298+
hornbill32dev.build.f_cpu=240000000L
299+
hornbill32dev.build.flash_mode=dio
300+
hornbill32dev.build.flash_size=4MB
301+
302+
hornbill32dev.menu.FlashFreq.80=80MHz
303+
hornbill32dev.menu.FlashFreq.80.build.flash_freq=80m
304+
hornbill32dev.menu.FlashFreq.40=40MHz
305+
hornbill32dev.menu.FlashFreq.40.build.flash_freq=40m
306+
307+
hornbill32dev.menu.UploadSpeed.921600=921600
308+
hornbill32dev.menu.UploadSpeed.921600.upload.speed=921600
309+
hornbill32dev.menu.UploadSpeed.115200=115200
310+
hornbill32dev.menu.UploadSpeed.115200.upload.speed=115200
311+
hornbill32dev.menu.UploadSpeed.256000.windows=256000
312+
hornbill32dev.menu.UploadSpeed.256000.upload.speed=256000
313+
hornbill32dev.menu.UploadSpeed.230400.windows.upload.speed=256000
314+
hornbill32dev.menu.UploadSpeed.230400=230400
315+
hornbill32dev.menu.UploadSpeed.230400.upload.speed=230400
316+
hornbill32dev.menu.UploadSpeed.460800.linux=460800
317+
hornbill32dev.menu.UploadSpeed.460800.macosx=460800
318+
hornbill32dev.menu.UploadSpeed.460800.upload.speed=460800
319+
hornbill32dev.menu.UploadSpeed.512000.windows=512000
320+
hornbill32dev.menu.UploadSpeed.512000.upload.speed=512000
321+
##############################################################
322+
hornbill32minima.name=Hornbill ESP32 Minima
323+
324+
hornbill32minima.upload.tool=esptool
325+
hornbill32minima.upload.maximum_size=1044464
326+
hornbill32minima.upload.maximum_data_size=294912
327+
hornbill32minima.upload.wait_for_upload_port=true
328+
329+
hornbill32minima.serial.disableDTR=true
330+
hornbill32minima.serial.disableRTS=true
331+
332+
hornbill32minima.build.mcu=esp32
333+
hornbill32minima.build.core=esp32
334+
hornbill32minima.build.variant=hornbill32minima
335+
hornbill32minima.build.board=HORNBILL_ESP32_MINIMA
336+
hornbill32minima.build.f_cpu=240000000L
337+
hornbill32minima.build.flash_mode=dio
338+
hornbill32minima.build.flash_size=4MB
339+
340+
hornbill32minima.menu.FlashFreq.80=80MHz
341+
hornbill32minima.menu.FlashFreq.80.build.flash_freq=80m
342+
hornbill32minima.menu.FlashFreq.40=40MHz
343+
hornbill32minima.menu.FlashFreq.40.build.flash_freq=40m
344+
345+
hornbill32minima.menu.UploadSpeed.921600=921600
346+
hornbill32minima.menu.UploadSpeed.921600.upload.speed=921600
347+
hornbill32minima.menu.UploadSpeed.115200=115200
348+
hornbill32minima.menu.UploadSpeed.115200.upload.speed=115200
349+
hornbill32minima.menu.UploadSpeed.256000.windows=256000
350+
hornbill32minima.menu.UploadSpeed.256000.upload.speed=256000
351+
hornbill32minima.menu.UploadSpeed.230400.windows.upload.speed=256000
352+
hornbill32minima.menu.UploadSpeed.230400=230400
353+
hornbill32minima.menu.UploadSpeed.230400.upload.speed=230400
354+
hornbill32minima.menu.UploadSpeed.460800.linux=460800
355+
hornbill32minima.menu.UploadSpeed.460800.macosx=460800
356+
hornbill32minima.menu.UploadSpeed.460800.upload.speed=460800
357+
hornbill32minima.menu.UploadSpeed.512000.windows=512000
358+
hornbill32minima.menu.UploadSpeed.512000.upload.speed=512000

variants/hornbill32dev/pins_arduino.h

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#define EXTERNAL_NUM_INTERRUPTS 16
5+
#define NUM_DIGITAL_PINS 40
6+
#define NUM_ANALOG_INPUTS 16
7+
8+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
9+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
10+
#define digitalPinHasPWM(p) (p < 34)
11+
12+
static const uint8_t TX = 1;
13+
static const uint8_t RX = 3;
14+
15+
static const uint8_t SDA = 21;
16+
static const uint8_t SCL = 22;
17+
18+
static const uint8_t SS = 2;
19+
static const uint8_t MOSI = 23;
20+
static const uint8_t MISO = 19;
21+
static const uint8_t SCK = 18;
22+
23+
static const uint8_t A0 = 36;
24+
static const uint8_t A3 = 39;
25+
static const uint8_t A4 = 32;
26+
static const uint8_t A5 = 33;
27+
static const uint8_t A6 = 34;
28+
static const uint8_t A7 = 35;
29+
static const uint8_t A10 = 4;
30+
static const uint8_t A11 = 0;
31+
static const uint8_t A12 = 2;
32+
static const uint8_t A13 = 15;
33+
static const uint8_t A14 = 13;
34+
static const uint8_t A15 = 12;
35+
static const uint8_t A16 = 14;
36+
static const uint8_t A17 = 27;
37+
static const uint8_t A18 = 25;
38+
static const uint8_t A19 = 26;
39+
40+
static const uint8_t T0 = 4;
41+
static const uint8_t T1 = 0;
42+
static const uint8_t T2 = 2;
43+
static const uint8_t T3 = 15;
44+
static const uint8_t T4 = 13;
45+
static const uint8_t T5 = 12;
46+
static const uint8_t T6 = 14;
47+
static const uint8_t T7 = 27;
48+
static const uint8_t T8 = 33;
49+
static const uint8_t T9 = 32;
50+
51+
static const uint8_t DAC1 = 25;
52+
static const uint8_t DAC2 = 26;
53+
54+
#endif /* Pins_Arduino_h */
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#define EXTERNAL_NUM_INTERRUPTS 16
5+
#define NUM_DIGITAL_PINS 40
6+
#define NUM_ANALOG_INPUTS 16
7+
8+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
9+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
10+
#define digitalPinHasPWM(p) (p < 34)
11+
12+
static const uint8_t TX = 1; //taken out on pgm header
13+
static const uint8_t RX = 3; //taken out on pgm header
14+
15+
static const uint8_t SDA = 21; //1
16+
static const uint8_t SCL = 22; //2
17+
18+
static const uint8_t SS = 2; //3
19+
static const uint8_t MOSI = 23; //4
20+
static const uint8_t MISO = 19; //5
21+
static const uint8_t SCK = 18; //6
22+
23+
24+
25+
static const uint8_t A6 = 34; //7
26+
static const uint8_t A7 = 35; //8
27+
static const uint8_t A10 = 4; //9
28+
static const uint8_t A11 = 0; // taken out on pgm header
29+
static const uint8_t A12 = 2; // with SPI SS
30+
static const uint8_t A13 = 15; //10
31+
static const uint8_t A14 = 13; //11
32+
33+
34+
35+
static const uint8_t DAC1 = 25; //12
36+
static const uint8_t DAC2 = 26; //13
37+
38+
39+
static const uint8_t T0 = 4; //used
40+
static const uint8_t T1 = 0; // taken out on pgm header
41+
static const uint8_t T2 = 2; //used
42+
static const uint8_t T3 = 15; //used
43+
44+
45+
46+
47+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)