Skip to content

Commit b76c30c

Browse files
ChuckMesden
authored andcommitted
Fixups
1 parent d29e4d2 commit b76c30c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/stm32/f4/stm32f429i-discovery/lcd-serial/lcd-serial.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ int main(void) {
4141
lcd_spi_init();
4242
console_puts("LCD Initialized\n");
4343
console_puts("Should have a checker pattern, press any key to proceed\n");
44-
(void) console_getc(1);
44+
msleep(2000);
45+
// (void) console_getc(1);
4546
gfx_init(lcd_draw_pixel, 240, 320);
4647
gfx_fillScreen(LCD_GREY);
4748
gfx_fillRoundRect(10, 10, 220, 220, 5, LCD_WHITE);
@@ -60,7 +61,8 @@ int main(void) {
6061
lcd_show_frame();
6162
console_puts("Now it has a bit of structured graphics.\n");
6263
console_puts("Press a key for some simple animation.\n");
63-
(void) console_getc(1);
64+
msleep(2000);
65+
// (void) console_getc(1);
6466
gfx_setTextColor(LCD_YELLOW, LCD_BLACK);
6567
gfx_setTextSize(3);
6668
p1 = 0;

examples/stm32/f4/stm32f429i-discovery/spi/console.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void console_putc(char c) {
108108
reg = USART_SR(CONSOLE_UART);
109109
} while ((reg & USART_SR_TXE) == 0);
110110
USART_DR(CONSOLE_UART) = (uint16_t) c & 0xff;
111+
ITM_Sendchar(c);
111112
}
112113

113114
/*

0 commit comments

Comments
 (0)