Tweak some formatting, replace tabs

This commit is contained in:
Scott Lahteine 2019-01-24 13:18:37 -06:00
parent 808df82b36
commit 8f9b246d0e
2 changed files with 19 additions and 17 deletions

View File

@ -26,10 +26,11 @@
* Communication interface for FSMC
*/
#if defined(STM32F1) || defined(STM32F1xx)
#include "../../inc/MarlinConfig.h"
#if HAS_GRAPHICAL_LCD
#if defined(STM32F1) || defined(STM32F1xx)
#include "U8glib.h"
#include "libmaple/fsmc.h"
@ -227,29 +228,30 @@ void LCD_IO_Init(uint8_t cs, uint8_t rs) {
}
void LCD_IO_WriteData(uint16_t RegValue) {
LCD->RAM = RegValue;
__DSB();
LCD->RAM = RegValue;
__DSB();
}
void LCD_IO_WriteReg(uint8_t Reg) {
LCD->REG = (uint16_t)Reg;
__DSB();
LCD->REG = (uint16_t)Reg;
__DSB();
}
uint32_t LCD_IO_ReadData(uint16_t RegValue, uint8_t ReadSize) {
volatile uint32_t data;
LCD->REG = (uint16_t)RegValue;
__DSB();
volatile uint32_t data;
LCD->REG = (uint16_t)RegValue;
__DSB();
data = LCD->RAM; // dummy read
data = LCD->RAM & 0x00FF;
data = LCD->RAM; // dummy read
data = LCD->RAM & 0x00FF;
while (--ReadSize) {
data <<= 8;
data |= (LCD->RAM & 0x00FF);
}
return (uint32_t)data;
while (--ReadSize) {
data <<= 8;
data |= (LCD->RAM & 0x00FF);
}
return (uint32_t)data;
}
#endif // STM32F1 || STM32F1xx
#endif // HAS_GRAPHICAL_LCD
#endif // STM32F1 || STM32F1xx

View File

@ -117,7 +117,7 @@ void GcodeSuite::M25() {
// Set initial pause flag to prevent more commands from landing in the queue while we try to pause
#if ENABLED(SDSUPPORT)
if (IS_SD_PRINTING()) { card.pauseSDPrint(); }
if (IS_SD_PRINTING()) card.pauseSDPrint();
#endif
#if ENABLED(PARK_HEAD_ON_PAUSE)