Initial ATmega2560 support

This commit is contained in:
Mark Qvist 2022-01-19 21:04:05 +01:00
parent 54411a44fc
commit f1e4ada1ca
3 changed files with 1517 additions and 2 deletions

View File

@ -67,8 +67,8 @@
#define BOARD_MODEL BOARD_HMBRW #define BOARD_MODEL BOARD_HMBRW
#define CONFIG_UART_BUFFER_SIZE 2048 #define CONFIG_UART_BUFFER_SIZE 1024
#define CONFIG_QUEUE_SIZE 2048 #define CONFIG_QUEUE_SIZE 4096
#define CONFIG_QUEUE_MAX_LENGTH 80 #define CONFIG_QUEUE_MAX_LENGTH 80
#define EEPROM_SIZE 4096 #define EEPROM_SIZE 4096

View File

@ -31,3 +31,14 @@ release-tbeam:
cp build/esp32.esp32.t-beam/RNode_Firmware.ino.partitions.bin build/rnode_firmware_latest_tbeam.partitions cp build/esp32.esp32.t-beam/RNode_Firmware.ino.partitions.bin build/rnode_firmware_latest_tbeam.partitions
zip --junk-paths ./Precompiled/rnode_firmware_latest_tbeam.zip ./Precompiled/esptool/esptool.py build/rnode_firmware_latest_tbeam.boot_app0 build/rnode_firmware_latest_tbeam.bin build/rnode_firmware_latest_tbeam.bootloader build/rnode_firmware_latest_tbeam.partitions zip --junk-paths ./Precompiled/rnode_firmware_latest_tbeam.zip ./Precompiled/esptool/esptool.py build/rnode_firmware_latest_tbeam.boot_app0 build/rnode_firmware_latest_tbeam.bin build/rnode_firmware_latest_tbeam.bootloader build/rnode_firmware_latest_tbeam.partitions
rm -r build rm -r build
firmware-mega2560:
arduino-cli compile --fqbn arduino:avr:mega
release-mega2560:
arduino-cli compile --fqbn arduino:avr:mega -e
cp build/arduino.avr.mega/RNode_Firmware.ino.hex Precompiled/rnode_firmware_latest_m2560.hex
rm -r build
upload-mega2560:
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:mega

File diff suppressed because it is too large Load Diff