Squash me
This commit is contained in:
parent
11c24647ea
commit
7f5ef3de8a
2 changed files with 36 additions and 6 deletions
|
@ -19,11 +19,23 @@
|
|||
void app_main(void const *param)
|
||||
{
|
||||
(void)param;
|
||||
app::init().main();
|
||||
}
|
||||
|
||||
f4ll::console_handler &con = f4ll::console_handler::init(USART2, DMA1, LL_DMA_STREAM_5, LL_DMA_STREAM_6);
|
||||
app::app()
|
||||
: m_con(
|
||||
f4ll::console_handler::init(
|
||||
USART2, DMA1, LL_DMA_STREAM_5, LL_DMA_STREAM_6, m_rx_buf_mem, sizeof(m_rx_buf_mem), m_tx_buf_mem, sizeof(m_tx_buf_mem),
|
||||
nullptr))
|
||||
{
|
||||
}
|
||||
|
||||
void app::main()
|
||||
{
|
||||
m_con.print("-------------------------------------------\n");
|
||||
while (true) {
|
||||
con.print("Hello woooooooooooooooooooooooooooooooorld!\n");
|
||||
m_con.print("Hello woooooooooooooooooooooooooooooooorld!\n");
|
||||
vTaskDelay(pdMS_TO_TICKS(500));
|
||||
LL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue