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:
parent
84b06972fc
commit
ce762bdb60
2 changed files with 11 additions and 1 deletions
|
|
@ -64,6 +64,14 @@ build_flags = -D MCU_ESP32
|
|||
monitor_filters = esp32_exception_decoder
|
||||
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]
|
||||
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
|
||||
board = pico
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@
|
|||
#define BOARD_AUTO
|
||||
//#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
|
||||
#ifndef HW_SERIAL
|
||||
#define USB_SERIAL
|
||||
#endif
|
||||
|
||||
#include <boards.h> //defines wiring
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue