Skip to content

Commit

Permalink
Created a very basic task for handling outbound UART messages (#66)
Browse files Browse the repository at this point in the history
* Created a very basic task for handling outbound UART messages, still needs a lot of work

* Adding task into main

* Copying ESP32's implementation which should work for our case

* Got basic UART terminal working with renode

* Adding tmux to docker container, makes it easier to debug serial

* trying to make printf redirection work

* Printf routing task works!
  • Loading branch information
nwdepatie authored Nov 5, 2023
1 parent f9881bf commit f732afe
Show file tree
Hide file tree
Showing 14 changed files with 7,948 additions and 625 deletions.
4 changes: 2 additions & 2 deletions .mxproject

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions Core/Inc/serial_monitor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef SERIAL_MONITOR_H
#define SERIAL_MONITOR_H

#include "cmsis_os.h"

/* Function to queue a message to be sent on the UART stream */
int serial_print(const char* format, ...);

/* Defining Temperature Monitor Task */
void vSerialMonitor(void* pv_params);

extern osThreadId_t serial_monitor_handle;
extern const osThreadAttr_t serial_monitor_attributes;

#endif // SERIAL_MONITOR_H
2 changes: 1 addition & 1 deletion Core/Inc/stm32f4xx_hal_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
/* #define HAL_MMC_MODULE_ENABLED */
#define HAL_SPI_MODULE_ENABLED
/* #define HAL_TIM_MODULE_ENABLED */
/* #define HAL_UART_MODULE_ENABLED */
#define HAL_UART_MODULE_ENABLED
/* #define HAL_USART_MODULE_ENABLED */
/* #define HAL_IRDA_MODULE_ENABLED */
/* #define HAL_SMARTCARD_MODULE_ENABLED */
Expand Down
Loading

0 comments on commit f732afe

Please sign in to comment.