Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved UART handling #5

Merged
merged 11 commits into from
Feb 20, 2020
Merged
2 changes: 1 addition & 1 deletion TFT/src/Libraries/cmsis/stm32f2xx/system_stm32f2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static void SetSysClock(void)
RCC->CFGR |= RCC_CFGR_SW_PLL;

/* Wait till the main PLL is used as system clock source */
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL);
while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL)
{
}
}
Expand Down
7 changes: 6 additions & 1 deletion TFT/src/User/API/LCD_Encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ void LCD_LoopEncoder(void)

void loopCheckMode(void)
{
if(isPrinting()) return;
// #ifndef CLEAN_MODE_SWITCHING_SUPPORT
// IDEALLY I would like to be able to swap even when the TFT is in printing mode
// but before I can allow that I need a way to make sure that we swap back into the right mode (and correct screen)
// and I really want a reliable way to DETECT that the TFT should be in printing mode even when the print was started externally.
if(isPrinting()) return;
// #endif
if(LCD_ReadBtn(LCD_CHANGE_MODE_INTERVALS) || LCD_ReadPen(LCD_CHANGE_MODE_INTERVALS))
{
infoMenu.menu[++infoMenu.cur] = menuMode;
Expand Down
3 changes: 3 additions & 0 deletions TFT/src/User/API/UI/ST7920_Simulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ void menuST7920(void)
#if LCD_ENCODER_SUPPORT
loopCheckMode();
#endif
#ifdef CLEAN_MODE_SWITCHING_SUPPORT
loopBackEnd();
#endif
}
SPI_SlaveDeInit();
}
Expand Down
Loading