Skip to content

Commit

Permalink
drivers/tcs37727 : Add CONFIG_
Browse files Browse the repository at this point in the history
Add CONFIG_ prefix to TCS37727_ATIME_DEFAULT and update
documentation for doxygen.
  • Loading branch information
akshaim committed May 7, 2020
1 parent d12de79 commit 04bdd40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions drivers/include/tcs37727.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ extern "C"
* @{
*/
/**
* @brief Default RGBC integration time.
* @brief Default RGBC integration time in microseconds.
*
* Refer section "RGBC Time Register" in datasheet for more information.
*/
#ifndef TCS37727_ATIME_DEFAULT
#define TCS37727_ATIME_DEFAULT 200000
#ifndef CONFIG_TCS37727_ATIME_DEFAULT
#define CONFIG_TCS37727_ATIME_DEFAULT 200000
#endif
/** @} */

Expand Down
2 changes: 1 addition & 1 deletion drivers/tcs37727/include/tcs37727_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern "C" {
#define TCS37727_PARAM_ADDR (TCS37727_I2C_ADDRESS)
#endif
#ifndef TCS37727_PARAM_ATIME
#define TCS37727_PARAM_ATIME (TCS37727_ATIME_DEFAULT)
#define TCS37727_PARAM_ATIME (CONFIG_TCS37727_ATIME_DEFAULT)
#endif

#ifndef TCS37727_PARAMS
Expand Down

0 comments on commit 04bdd40

Please sign in to comment.