Add support for ESP32 platform
This commit is contained in:
parent
1b8ffc88d7
commit
9aa42e7400
3 changed files with 9 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ The code is split into the main part which mostly handles command parsing and mo
|
|||
Motor moves now do not block command processing and a new command `stop` was added which aborts any move in progress.
|
||||
|
||||
## Hardware
|
||||
This is mainly intended for Sangaboard control boards and all configuration for these is already in `boards.h`, but it can also be used on different platforms (pi pico, stm32 (bluepill)). To use a custom board based on any of these platforms adjust `boards.h` to match your wiring.
|
||||
This is mainly intended for Sangaboard control boards and all configuration for these is already in `boards.h`, but it can also be used on different platforms (pi pico, stm32 (bluepill), ESP32). To use a custom board based on any of these platforms adjust `boards.h` to match your wiring.
|
||||
|
||||
If you have additional hardware connected to the board (Endstops, Light sensor) support for these can be enabled in `config.h`.
|
||||
|
||||
|
|
|
|||
|
|
@ -48,3 +48,8 @@ build_flags =
|
|||
-D USB_MANUFACTURER="Unknown"
|
||||
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
|
||||
-D HAL_PCD_MODULE_ENABLED
|
||||
|
||||
[env:esp32]
|
||||
platform = espressif32
|
||||
board = esp-wrover-kit
|
||||
build_flags = -D MCU_ESP32
|
||||
|
|
@ -7,6 +7,8 @@
|
|||
#define BOARD_CUSTOM_BLUEPILL
|
||||
#elif defined(MCU_PICO)
|
||||
#define BOARD_CUSTOM_PICO
|
||||
#elif defined(MCU_ESP32)
|
||||
#define BOARD_CUSTOM
|
||||
#else
|
||||
#error "Invalid build config - must specify MCU type"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue