Robin FSMC / SPI pins
This commit is contained in:
parent
4268c1f1a5
commit
fd9f067a48
@ -64,10 +64,9 @@
|
|||||||
* @details Only configures SS pin since libmaple creates and initialize the SPI object
|
* @details Only configures SS pin since libmaple creates and initialize the SPI object
|
||||||
*/
|
*/
|
||||||
void spiBegin() {
|
void spiBegin() {
|
||||||
#if !PIN_EXISTS(SS)
|
#if PIN_EXISTS(SS)
|
||||||
#error "SS_PIN not defined!"
|
|
||||||
#endif
|
|
||||||
OUT_WRITE(SS_PIN, HIGH);
|
OUT_WRITE(SS_PIN, HIGH);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -116,6 +116,9 @@
|
|||||||
* to let the bootloader init the screen.
|
* to let the bootloader init the screen.
|
||||||
*/
|
*/
|
||||||
#if ENABLED(FSMC_GRAPHICAL_TFT)
|
#if ENABLED(FSMC_GRAPHICAL_TFT)
|
||||||
|
#define FSMC_CS_PIN PD7 // NE4
|
||||||
|
#define FSMC_RS_PIN PD11 // A0
|
||||||
|
|
||||||
#define LCD_RESET_PIN PF6
|
#define LCD_RESET_PIN PF6
|
||||||
#define NO_LCD_REINIT // Suppress LCD re-initialization
|
#define NO_LCD_REINIT // Suppress LCD re-initialization
|
||||||
|
|
||||||
@ -123,8 +126,6 @@
|
|||||||
|
|
||||||
#if ENABLED(TOUCH_BUTTONS)
|
#if ENABLED(TOUCH_BUTTONS)
|
||||||
#define BTN_ENC PB3 // Not connected. TODO: Replace this hack to enable button code
|
#define BTN_ENC PB3 // Not connected. TODO: Replace this hack to enable button code
|
||||||
#define FSMC_CS_PIN PD7 // NE4
|
|
||||||
#define FSMC_RS_PIN PD11 // A0
|
|
||||||
#define TOUCH_CS_PIN PC2
|
#define TOUCH_CS_PIN PC2
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -120,6 +120,9 @@
|
|||||||
* to let the bootloader init the screen.
|
* to let the bootloader init the screen.
|
||||||
*/
|
*/
|
||||||
#if ENABLED(FSMC_GRAPHICAL_TFT)
|
#if ENABLED(FSMC_GRAPHICAL_TFT)
|
||||||
|
#define FSMC_CS_PIN PD7 // NE4
|
||||||
|
#define FSMC_RS_PIN PD11 // A0
|
||||||
|
|
||||||
#define LCD_RESET_PIN PF6
|
#define LCD_RESET_PIN PF6
|
||||||
#define NO_LCD_REINIT // Suppress LCD re-initialization
|
#define NO_LCD_REINIT // Suppress LCD re-initialization
|
||||||
|
|
||||||
@ -127,8 +130,6 @@
|
|||||||
|
|
||||||
#if ENABLED(TOUCH_BUTTONS)
|
#if ENABLED(TOUCH_BUTTONS)
|
||||||
#define BTN_ENC PC13 // Not connected. TODO: Replace this hack to enable button code
|
#define BTN_ENC PC13 // Not connected. TODO: Replace this hack to enable button code
|
||||||
#define FSMC_CS_PIN PD7 // NE4
|
|
||||||
#define FSMC_RS_PIN PD11 // A0
|
|
||||||
#define TOUCH_CS_PIN PA7
|
#define TOUCH_CS_PIN PA7
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user