Add BananaPi-BIT Development Board Support (#1810)
* Add BPI-BIT boards connfig * Add BPI-BIT v1.3 boards
This commit is contained in:
parent
145904fb9c
commit
3028ec42c7
43
boards.txt
43
boards.txt
@ -2275,6 +2275,49 @@ wipy3.menu.DebugLevel.verbose.build.code_debug=5
|
||||
|
||||
##############################################################
|
||||
|
||||
bpi-bit.name=BPI-BIT
|
||||
|
||||
bpi-bit.upload.tool=esptool
|
||||
bpi-bit.upload.maximum_size=1310720
|
||||
bpi-bit.upload.maximum_data_size=294912
|
||||
bpi-bit.upload.wait_for_upload_port=true
|
||||
|
||||
bpi-bit.serial.disableDTR=true
|
||||
bpi-bit.serial.disableRTS=true
|
||||
|
||||
bpi-bit.build.mcu=esp32
|
||||
bpi-bit.build.core=esp32
|
||||
bpi-bit.build.variant=bpi-bit
|
||||
bpi-bit.build.board=BPI-BIT
|
||||
|
||||
bpi-bit.build.f_cpu=160000000L
|
||||
bpi-bit.build.flash_mode=dio
|
||||
bpi-bit.build.flash_size=4MB
|
||||
bpi-bit.build.boot=dio
|
||||
bpi-bit.build.partitions=default
|
||||
|
||||
bpi-bit.menu.FlashFreq.80=80MHz
|
||||
bpi-bit.menu.FlashFreq.80.build.flash_freq=80m
|
||||
bpi-bit.menu.FlashFreq.40=40MHz
|
||||
bpi-bit.menu.FlashFreq.40.build.flash_freq=40m
|
||||
|
||||
bpi-bit.menu.UploadSpeed.921600=921600
|
||||
bpi-bit.menu.UploadSpeed.921600.upload.speed=921600
|
||||
bpi-bit.menu.UploadSpeed.115200=115200
|
||||
bpi-bit.menu.UploadSpeed.115200.upload.speed=115200
|
||||
bpi-bit.menu.UploadSpeed.256000.windows=256000
|
||||
bpi-bit.menu.UploadSpeed.256000.upload.speed=256000
|
||||
bpi-bit.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||
bpi-bit.menu.UploadSpeed.230400=230400
|
||||
bpi-bit.menu.UploadSpeed.230400.upload.speed=230400
|
||||
bpi-bit.menu.UploadSpeed.460800.linux=460800
|
||||
bpi-bit.menu.UploadSpeed.460800.macosx=460800
|
||||
bpi-bit.menu.UploadSpeed.460800.upload.speed=460800
|
||||
bpi-bit.menu.UploadSpeed.512000.windows=512000
|
||||
bpi-bit.menu.UploadSpeed.512000.upload.speed=512000
|
||||
|
||||
##############################################################
|
||||
|
||||
wesp32.name=Silicognition wESP32
|
||||
|
||||
wesp32.upload.tool=esptool
|
||||
|
63
variants/bpi-bit/pins_arduino.h
Normal file
63
variants/bpi-bit/pins_arduino.h
Normal file
@ -0,0 +1,63 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t BUZZER = 25;
|
||||
|
||||
static const uint8_t BUTTON_A = 35;
|
||||
static const uint8_t BUTTON_B = 27;
|
||||
|
||||
static const uint8_t RGB_LED = 4;
|
||||
static const uint8_t RGB_LED_POWER = 2;
|
||||
|
||||
static const uint8_t LIGHT_SENSOR1 = 36;
|
||||
static const uint8_t LIGHT_SENSOR2 = 39;
|
||||
|
||||
static const uint8_t TEMPERATURE_SENSOR = 34;
|
||||
|
||||
static const uint8_t MPU9250_AD0 = 0;
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 23;
|
||||
|
||||
static const uint8_t P0 = 25;
|
||||
static const uint8_t P1 = 32;
|
||||
static const uint8_t P2 = 33;
|
||||
static const uint8_t P3 = 13;
|
||||
static const uint8_t P4 = 15;
|
||||
static const uint8_t P5 = 35;
|
||||
static const uint8_t P6 = 12;
|
||||
static const uint8_t P7 = 14;
|
||||
static const uint8_t P8 = 16;
|
||||
static const uint8_t P9 = 17;
|
||||
static const uint8_t P10 = 26;
|
||||
static const uint8_t P11 = 27;
|
||||
static const uint8_t P12 = 2;
|
||||
static const uint8_t P13 = 18;
|
||||
static const uint8_t P14 = 19;
|
||||
static const uint8_t P15 = 23;
|
||||
static const uint8_t P16 = 5;
|
||||
static const uint8_t P19 = 22;
|
||||
static const uint8_t P20 = 21;
|
||||
|
||||
static const uint8_t DAC1 = 26;
|
||||
static const uint8_t DAC2 = 25;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user