Mercurial > public > ostc4
diff Discovery/Inc/ostc.h @ 1037:2af07aa38531 GasConsumption
Merge with external development branches:
Some features have been prepared for integration: Profiles, DMA UART on Firmware part, Bluetooth discovery and messges logging for development phase. All these new function are deactivated by compile switch and may be activated using the configuration.h for testing purpose.
| author | Ideenmodellierer |
|---|---|
| date | Mon, 15 Sep 2025 21:12:44 +0200 |
| parents | 5865f0aeb438 |
| children | 36fa1c44e597 |
line wrap: on
line diff
--- a/Discovery/Inc/ostc.h Sun Sep 07 20:44:35 2025 +0200 +++ b/Discovery/Inc/ostc.h Mon Sep 15 21:12:44 2025 +0200 @@ -60,6 +60,10 @@ #define DISPLAY_VERSION_LCD (0u) #define DISPLAY_VERSION_NEW (1u) +#define CHUNK_SIZE (160u) /* the DMA will handle chunk size transfers */ +#define CHUNKS_PER_BUFFER (3u) + + /* Exported variables --------------------------------------------------------*/ extern SPI_HandleTypeDef hspiDisplay; @@ -82,6 +86,7 @@ void MX_SPI_Init(void); void MX_GPIO_Init(void); void MX_UART_Init(void); +void MX_UART_BT_Init_DMA(); uint8_t MX_UART_ButtonAdjust(uint8_t *array); void MX_SmallCPU_Reset_To_Boot(void); @@ -104,5 +109,15 @@ void SetDisplayVersion(uint8_t version); uint8_t isNewDisplay(void); +uint8_t UART_getChar(); + +#ifdef ENABLE_PULSE_SENSOR_BT +void UART_StartDMARx(); +#endif +#ifdef ENABLE_USART_RADIO +void MX_UART_RADIO_Init_DMA(); +void UART_StartDMARxRadio(); +#endif + #endif // OSTC_H
