ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::libretiny Namespace Reference

Data Structures

class  ArduinoInternalGPIOPin
 
class  LibreTinyPreferenceBackend
 
class  LibreTinyPreferences
 
class  LTComponent
 

Functions

void ensure_serial_handle (uint8_t port)
 Give a hardware UART its SDK handle before its Serial begin()s.
 
 ESPHOME_LOG_TAG (TAG, "libretiny.gpio")
 
 ESPHOME_LOG_TAG (TAG, "libretiny")
 
LibreTinyPreferences * get_preferences ()
 
 ESPHOME_LOG_TAG (TAG, "preferences")
 
void setup_preferences ()
 

Function Documentation

◆ ensure_serial_handle()

void esphome::libretiny::ensure_serial_handle ( uint8_t port)
inline

Give a hardware UART its SDK handle before its Serial begin()s.

LibreTiny's LN882H Serial passes the SDK's per port handle to serial_init(), which fills it in, but only the default log port (UART1) has one at boot. Any other port hands it NULL and the chip faults before setup, so a logger or uart on UART0 never boots. Drop this once LibreTiny gives each port storage of its own.

Definition at line 16 of file core.cpp.

◆ ESPHOME_LOG_TAG() [1/3]

esphome::libretiny::ESPHOME_LOG_TAG ( TAG ,
"libretiny"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::libretiny::ESPHOME_LOG_TAG ( TAG ,
"libretiny.gpio"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::libretiny::ESPHOME_LOG_TAG ( TAG ,
"preferences"  )

◆ get_preferences()

LibreTinyPreferences * esphome::libretiny::get_preferences ( )

Definition at line 249 of file preferences.cpp.

◆ setup_preferences()

void esphome::libretiny::setup_preferences ( )

Definition at line 251 of file preferences.cpp.