Skip to content

Commit 3877145

Browse files
authored
Feature/aw2eth (#6829)
* Create pins_arduino.h * Update boards.txt
1 parent e909172 commit 3877145

File tree

2 files changed

+128
-0
lines changed

2 files changed

+128
-0
lines changed

Diff for: boards.txt

+72
Original file line numberDiff line numberDiff line change
@@ -14679,3 +14679,75 @@ connaxio_espoir.menu.DebugLevel.verbose=Verbose
1467914679
connaxio_espoir.menu.DebugLevel.verbose.build.code_debug=5
1468014680

1468114681
##############################################################
14682+
14683+
aw2eth.name=CNRS AW2ETH
14684+
14685+
aw2eth.bootloader.tool=esptool_py
14686+
aw2eth.bootloader.tool.default=esptool_py
14687+
14688+
aw2eth.upload.tool=esptool_py
14689+
aw2eth.upload.tool.default=esptool_py
14690+
aw2eth.upload.tool.network=esp_ota
14691+
14692+
aw2eth.upload.maximum_size=1310720
14693+
aw2eth.upload.maximum_data_size=327680
14694+
aw2eth.upload.flags=
14695+
aw2eth.upload.extra_flags=
14696+
14697+
aw2eth.serial.disableDTR=true
14698+
aw2eth.serial.disableRTS=true
14699+
14700+
aw2eth.build.tarch=xtensa
14701+
aw2eth.build.bootloader_addr=0x1000
14702+
aw2eth.build.target=esp32
14703+
aw2eth.build.mcu=esp32
14704+
aw2eth.build.core=esp32
14705+
aw2eth.build.variant=cnrs_aw2eth
14706+
aw2eth.build.board=ESP32_PICO
14707+
14708+
aw2eth.build.f_cpu=240000000L
14709+
aw2eth.build.flash_size=4MB
14710+
aw2eth.build.flash_freq=80m
14711+
aw2eth.build.flash_mode=dio
14712+
aw2eth.build.boot=dio
14713+
aw2eth.build.partitions=default
14714+
aw2eth.build.defines=
14715+
14716+
aw2eth.menu.PartitionScheme.default=Default
14717+
aw2eth.menu.PartitionScheme.default.build.partitions=default
14718+
aw2eth.menu.PartitionScheme.no_ota=No OTA (Large APP)
14719+
aw2eth.menu.PartitionScheme.no_ota.build.partitions=no_ota
14720+
aw2eth.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
14721+
aw2eth.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
14722+
aw2eth.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
14723+
aw2eth.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
14724+
14725+
aw2eth.menu.UploadSpeed.921600=921600
14726+
aw2eth.menu.UploadSpeed.921600.upload.speed=921600
14727+
aw2eth.menu.UploadSpeed.115200=115200
14728+
aw2eth.menu.UploadSpeed.115200.upload.speed=115200
14729+
aw2eth.menu.UploadSpeed.256000.windows=256000
14730+
aw2eth.menu.UploadSpeed.256000.upload.speed=256000
14731+
aw2eth.menu.UploadSpeed.230400.windows.upload.speed=256000
14732+
aw2eth.menu.UploadSpeed.230400=230400
14733+
aw2eth.menu.UploadSpeed.230400.upload.speed=230400
14734+
aw2eth.menu.UploadSpeed.460800.linux=460800
14735+
aw2eth.menu.UploadSpeed.460800.macosx=460800
14736+
aw2eth.menu.UploadSpeed.460800.upload.speed=460800
14737+
aw2eth.menu.UploadSpeed.512000.windows=512000
14738+
aw2eth.menu.UploadSpeed.512000.upload.speed=512000
14739+
14740+
aw2eth.menu.DebugLevel.none=None
14741+
aw2eth.menu.DebugLevel.none.build.code_debug=0
14742+
aw2eth.menu.DebugLevel.error=Error
14743+
aw2eth.menu.DebugLevel.error.build.code_debug=1
14744+
aw2eth.menu.DebugLevel.warn=Warn
14745+
aw2eth.menu.DebugLevel.warn.build.code_debug=2
14746+
aw2eth.menu.DebugLevel.info=Info
14747+
aw2eth.menu.DebugLevel.info.build.code_debug=3
14748+
aw2eth.menu.DebugLevel.debug=Debug
14749+
aw2eth.menu.DebugLevel.debug.build.code_debug=4
14750+
aw2eth.menu.DebugLevel.verbose=Verbose
14751+
aw2eth.menu.DebugLevel.verbose.build.code_debug=5
14752+
14753+
##############################################################

Diff for: variants/cnrs_aw2eth/pins_arduino.h

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

0 commit comments

Comments
 (0)