mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-04-07 10:22:21 +00:00
refactor: format CMakeLists.txt for better readability and add documentation comments in dmx.h
This commit is contained in:
parent
573757ffe0
commit
226370a077
3 changed files with 19 additions and 2 deletions
|
|
@ -1 +1,8 @@
|
||||||
idf_component_register(SRCS "src/dmx.c" INCLUDE_DIRS "include" REQUIRES logger esp_dmx)
|
idf_component_register(
|
||||||
|
SRCS
|
||||||
|
"src/dmx.c"
|
||||||
|
INCLUDE_DIRS
|
||||||
|
"include"
|
||||||
|
REQUIRES
|
||||||
|
logger
|
||||||
|
esp_dmx)
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,18 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Initialize the DMX interface.
|
||||||
|
* @param port The DMX port to initialize.
|
||||||
|
* @param pin_tx The pin for TX of the RS485.
|
||||||
|
* @param pin_rx The pin for RX of the RS485.
|
||||||
|
*/
|
||||||
void init_dmx(dmx_port_t port, int pin_tx, int pin_rx);
|
void init_dmx(dmx_port_t port, int pin_tx, int pin_rx);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Send some test DMX data on the specified port.
|
||||||
|
* @param port The DMX port to send data on.
|
||||||
|
*/
|
||||||
void send_dmx(dmx_port_t port);
|
void send_dmx(dmx_port_t port);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#define LOG_TAG "DMX"
|
#define LOG_TAG "DMX" ///< "DMX" log tag for this file
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue