1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green 15ce46d971 drivers: initial generic gpio and i2c plus bitbang
Make a start on generic peripheral and bus drivers to provide
meta-functionality regardless of platform.

On the one hand this simply provides...

 - bitbang i2c on top of esp-idf gpio apis
 - ssd1306 oled chip driver as found on Heltec WB32
 - modifications to the minimal example test for esp32 to use that

... on the other hand, those capabilities are provided by creating:

 - an abstract i2c class object
 - an abstract gpio class object
 - i2c class implementation using the abstract gpio for bitbang
 - an abstract display class object
 - an abstract display state (brightness, animated change,
    on/off/init tracking, autodim after inactive, auto-off /
    blanking after inactive)

... with the intention, eg, you only have to add a platform
implementation for the gpio to be able to use the i2c-based
display drivers and state handling, and i2c bitbang, without
any other modifications.
2020-06-10 19:17:08 +01:00
..
abstract cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
core mingw: fix for different sockfd type in udp example 2020-06-06 15:53:58 +01:00
core-net ipv6: support interface name for scope lookup 2020-06-08 05:27:11 +01:00
drivers drivers: initial generic gpio and i2c plus bitbang 2020-06-10 19:17:08 +01:00
event-libs clean: use lws_intptr_t where needed 2020-06-03 06:48:06 +01:00
jose cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
misc mingw: fix for different sockfd type in udp example 2020-06-06 15:53:58 +01:00
plat drivers: initial generic gpio and i2c plus bitbang 2020-06-10 19:17:08 +01:00
roles mingw: update cross toolchain and add 32 and 64 default builds to sai 2020-06-03 09:36:20 +01:00
secure-streams clean 2020-06-10 19:07:38 +01:00
system sul: multiple timer domains 2020-06-02 08:37:10 +01:00
tls windows: for data exports use explicit extern 2020-06-07 07:53:36 +01:00
CMakeLists.txt drivers: initial generic gpio and i2c plus bitbang 2020-06-10 19:17:08 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries