Add DHTxx and Modbus driver folders and .slcc files #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds new drivers for DHT11/DHT22 temperature/humidity sensors and ModbusMaster RTU RS485 communication, along with their configuration headers and APIs. The changes provide flexible sensor and protocol support, backward compatibility, and integration with the platform's pin tool and documentation system.
Board Driver Additions
dhtxx_driver
component for DHT11/DHT22 sensors with automatic protocol detection and pin tool integration, including backward-compatible names and platform documentation references.modbusmaster_driver
component for ModbusMaster RTU RS485 communication, supporting register reads, DE/RE pin control, and platform documentation references.DHTXX Sensor Driver Implementation
dhtxx.c
supporting both DHT11 and DHT22 sensors, precise microsecond timing, automatic sensor type selection, and Arduino-style API functions for easy integration.sl_dhtxx_config.h
for selecting sensor type and configuring the data pin, with pin tool integration and sensor type definitions.dhtxx.h
defining types, main API functions, and backward compatibility typedefs.ModbusMaster Driver Implementation
sl_modbusmaster_config.h
for ModbusMaster driver, allowing timeout, guard time, debug output, and DE/RE pin configuration via pin tool.modbusmaster.h
defining buffer management, register read functions, error handling, and stream/pin control for ModbusMaster RTU communication.