[riot-notifications] [RIOT-OS/RIOT] net/adcxx1c : Expose configurations to Kconfig (#15873)

Akshai M (Augustus Diode) notifications at github.com
Wed Jan 27 19:58:35 CET 2021


### Contribution description

This PR exposes compile configurations in net/adcxx1c to Kconfig.

### Testing procedure

1. New documentation was built using Doxygen 

   The build works fine.

  2. Build successful.  [Tests](https://github.com/akshaim/RIOT/commit/fdd3db26eb8f869006cc04f241e96ae435df5565). Results below

      Compiled binaries for ` b-l072z-lrwan1 ` target.

#### Default State:

##### Firmware Output

```
CONFIG_ADCXX1C_I2C_ADDRESS=(0x54)
CONFIG_ADCXX1C_PARAM_CYCLE=(ADCXX1C_CYCLE_DISABLED)
CONFIG_ADCXX1C_PARAM_LOW_LIMIT=90
CONFIG_ADCXX1C_PARAM_HIGH_LIMIT=130
CONFIG_ADCXX1C_PARAM_HYSTERESIS=10
```

#### Usage with menuconfig :


`make menuconfig`

#### Default values

```
CONFIG_ADCXX1C_I2C_ADDRESS=0x54
CONFIG_ADCXX1C_PARAM_CYCLE=(ADCXX1C_CYCLE_DISABLED)
CONFIG_ADCXX1C_PARAM_LOW_LIMIT=0
CONFIG_ADCXX1C_PARAM_HIGH_LIMIT=0
CONFIG_ADCXX1C_PARAM_HYSTERESIS=0
```
##### Macros Configured output

```
CONFIG_ADCXX1C_I2C_ADDRESS=0x51
CONFIG_ADCXX1C_PARAM_CYCLE=(ADCXX1C_CYCLE_128)
CONFIG_ADCXX1C_PARAM_LOW_LIMIT=10
CONFIG_ADCXX1C_PARAM_HIGH_LIMIT=55
CONFIG_ADCXX1C_PARAM_HYSTERESIS=30
```


**MACROS were successfully configured.**

### Issues/PRs references

#12888 
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15873

-- Commit Summary --

  * drivers/adcxx1c : Move `ADCXX1C_I2C_ADDRESS` to `CONFIG_`
  * drivers/adcxx1c : Move `ADCXX1C_PARAM_LOW_LIMIT` to `CONFIG_`
  * drivers/adcxx1c : Move `ADCXX1C_PARAM_HIGH_LIMIT` to `CONFIG_`
  * drivers/adcxx1c : Move `ADCXX1C_PARAM_HYSTERESIS` to `CONFIG_`
  * drivers/adcxx1c : Move `ADCXX1C_PARAM_CYCLE` to `CONFIG_`
  * drivers/adcxx1c : Expose to Kconfig
  * drivers/adcxx1c : Update documentation

-- File Changes --

    M drivers/adcxx1c/Kconfig (89)
    M drivers/adcxx1c/include/adcxx1c_params.h (92)
    M drivers/include/adcxx1c.h (8)
    M tests/driver_adcxx1c/Makefile (15)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15873.patch
https://github.com/RIOT-OS/RIOT/pull/15873.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15873
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210127/1d93e057/attachment.htm>


More information about the notifications mailing list