🎨 Update MKSPWC, some other pins (#22557)
This commit is contained in:
@@ -186,20 +186,17 @@
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(PSU_CONTROL) // MKSPWC
|
||||
#if HAS_TFT_LVGL_UI
|
||||
#error "PSU_CONTROL cannot be used with TFT_LVGL_UI. Disable PSU_CONTROL to continue."
|
||||
#if ENABLED(MKS_PWC)
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
#undef PSU_CONTROL
|
||||
#undef MKS_PWC
|
||||
#define SUICIDE_PIN PG11
|
||||
#define SUICIDE_PIN_STATE LOW
|
||||
#else
|
||||
#define PS_ON_PIN PG11 // PW_OFF
|
||||
#endif
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PG11 // SUICIDE
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN PA2
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
#else
|
||||
#define SUICIDE_PIN PG11
|
||||
#define SUICIDE_PIN_INVERTING false
|
||||
#define KILL_PIN PA2
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -318,8 +315,8 @@
|
||||
#define HAS_SPI_FLASH 1
|
||||
#if HAS_SPI_FLASH
|
||||
#define SPI_FLASH_SIZE 0x1000000 // 16MB
|
||||
#define W25QXX_CS_PIN PB12 // Flash chip-select
|
||||
#define W25QXX_MOSI_PIN PB15
|
||||
#define W25QXX_MISO_PIN PB14
|
||||
#define W25QXX_SCK_PIN PB13
|
||||
#define SPI_FLASH_CS_PIN PB12 // Flash chip-select
|
||||
#define SPI_FLASH_MOSI_PIN PB15
|
||||
#define SPI_FLASH_MISO_PIN PB14
|
||||
#define SPI_FLASH_SCK_PIN PB13
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user