We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e22018 commit e0c2e45Copy full SHA for e0c2e45
cores/arduino/HardwareSerial.h
@@ -175,11 +175,13 @@ class HardwareSerial : public Stream {
175
static void _rx_complete_irq(serial_t *obj);
176
static int _tx_complete_irq(serial_t *obj);
177
178
+#if defined(HAL_UART_MODULE_ENABLED) && !defined(HAL_UART_MODULE_ONLY)
179
// Could be used to mix Arduino API and STM32Cube HAL API (ex: DMA). Use at your own risk.
180
UART_HandleTypeDef *getHandle(void)
181
{
182
return &(_serial.handle);
183
}
184
+#endif // HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY
185
186
private:
187
bool _rx_enabled;
0 commit comments