Added an environment for pico using HW serial

I wasn't sure how to compile with or without
HW serial support, so I duplicated the "pico"
environment and added a -D HW_SERIAL
This commit is contained in:
Richard Bowman 2023-02-13 15:18:16 +00:00
parent 84b06972fc
commit ce762bdb60
2 changed files with 11 additions and 1 deletions

View file

@ -64,6 +64,14 @@ build_flags = -D MCU_ESP32
monitor_filters = esp32_exception_decoder monitor_filters = esp32_exception_decoder
build_type = debug build_type = debug
[env:picohw]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
upload_port = /media/filip/RPI-RP2
build_flags = -D MCU_PICO -D HW_SERIAL
[env:pico] [env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico board = pico

View file

@ -3,9 +3,11 @@
#define BOARD_AUTO #define BOARD_AUTO
//#define BOARD_SANGABOARDv5 //#define BOARD_SANGABOARDv5
//without this, default to HW serial where available //if HW_SERIAL is not defined, we'll use USB serial communication
//the details are board specific and configured in boards.h //the details are board specific and configured in boards.h
#ifndef HW_SERIAL
#define USB_SERIAL #define USB_SERIAL
#endif
#include <boards.h> //defines wiring #include <boards.h> //defines wiring