Skip to content

Commit

Permalink
documentation for tm1637_params.h
Browse files Browse the repository at this point in the history
  • Loading branch information
KSKNico committed Dec 27, 2024
1 parent ff5da2f commit 085465d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions drivers/include/tm1637.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/*
* Copyright (C) 2024 Nico Behrens <[email protected]>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/

/**
* @defgroup drivers_tm1637 TM1637 display

Check failure on line 10 in drivers/include/tm1637.h

View workflow job for this annotation

GitHub Actions / static-tests

Refusing to add group drivers_tm1637 to itself
* @ingroup drivers_tm1637
* @brief Driver for the TM1637 4-digit 7-segment display
*
* @{
* @file
* @brief Interface definition for the TM1637 4-digit 7-segment display driver
*
* @author Nico Behrens <[email protected]>
*
* @}
*/

#ifndef TM1637_H
#define TM1637_H

Expand Down
12 changes: 12 additions & 0 deletions drivers/tm1637/include/tm1637_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,30 @@ extern "C" {
#endif

#ifndef TM1637_PARAM_CLK
/**
* @brief see @ref tm1637_params_t
*/
#define TM1637_PARAM_CLK GPIO_PIN(0, 0)
#endif

#ifndef TM1637_PARAM_DIO
/**
* @brief see @ref tm1637_params_t
*/
#define TM1637_PARAM_DIO GPIO_PIN(0, 1)
#endif

#ifndef TM1637_PARAMS
/**
* @brief see @ref tm1637_params_t
*/
#define TM1637_PARAMS { .clk = TM1637_PARAM_CLK, \
.dio = TM1637_PARAM_DIO }
#endif

/**
* @brief see @ref tm1637_params_t
*/
static const tm1637_params_t tm1637_params[] = {
TM1637_PARAMS
};
Expand Down

0 comments on commit 085465d

Please sign in to comment.