comparison 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
comparison
equal deleted inserted replaced
1029:e938901f6386 1037:2af07aa38531
58 #define SDRAM_MODEREG_WRITEBURST_MODE_SINGLE ((uint16_t)0x0200) 58 #define SDRAM_MODEREG_WRITEBURST_MODE_SINGLE ((uint16_t)0x0200)
59 59
60 #define DISPLAY_VERSION_LCD (0u) 60 #define DISPLAY_VERSION_LCD (0u)
61 #define DISPLAY_VERSION_NEW (1u) 61 #define DISPLAY_VERSION_NEW (1u)
62 62
63 #define CHUNK_SIZE (160u) /* the DMA will handle chunk size transfers */
64 #define CHUNKS_PER_BUFFER (3u)
65
66
63 /* Exported variables --------------------------------------------------------*/ 67 /* Exported variables --------------------------------------------------------*/
64 68
65 extern SPI_HandleTypeDef hspiDisplay; 69 extern SPI_HandleTypeDef hspiDisplay;
66 extern SPI_HandleTypeDef cpu2DmaSpi; 70 extern SPI_HandleTypeDef cpu2DmaSpi;
67 71
80 /* Exported functions --------------------------------------------------------*/ 84 /* Exported functions --------------------------------------------------------*/
81 85
82 void MX_SPI_Init(void); 86 void MX_SPI_Init(void);
83 void MX_GPIO_Init(void); 87 void MX_GPIO_Init(void);
84 void MX_UART_Init(void); 88 void MX_UART_Init(void);
89 void MX_UART_BT_Init_DMA();
85 uint8_t MX_UART_ButtonAdjust(uint8_t *array); 90 uint8_t MX_UART_ButtonAdjust(uint8_t *array);
86 91
87 void MX_SmallCPU_Reset_To_Boot(void); 92 void MX_SmallCPU_Reset_To_Boot(void);
88 void MX_SmallCPU_Reset_To_Standard(void); 93 void MX_SmallCPU_Reset_To_Standard(void);
89 void MX_SmallCPU_NO_Reset_Helper(void); 94 void MX_SmallCPU_NO_Reset_Helper(void);
102 void MX_TestPin_Low(void); 107 void MX_TestPin_Low(void);
103 108
104 void SetDisplayVersion(uint8_t version); 109 void SetDisplayVersion(uint8_t version);
105 uint8_t isNewDisplay(void); 110 uint8_t isNewDisplay(void);
106 111
112 uint8_t UART_getChar();
113
114 #ifdef ENABLE_PULSE_SENSOR_BT
115 void UART_StartDMARx();
116 #endif
117 #ifdef ENABLE_USART_RADIO
118 void MX_UART_RADIO_Init_DMA();
119 void UART_StartDMARxRadio();
120 #endif
121
107 122
108 #endif // OSTC_H 123 #endif // OSTC_H