[riot-notifications] [RIOT-OS/RIOT] drivers/lpsxxx : Expose Configurations to Kconfig (#14000)

Akshai M (Augustus Diode) notifications at github.com
Fri May 1 09:57:55 CEST 2020


### Contribution description

This PR exposes compile configurations in LPS331AP/LPS25HB/LPS22HB Sensor Device driver to Kconfig.

### Testing procedure
1. New documentation was built using doxygen 

The build works fine.

2. New macro was introduced in tests/driver_tmp00x/main.c for testing.

```
#define STR(x)   #x
#define SHOW_DEFINE(x) printf("%s=%s\n", #x, STR(x))
```
Firmware was uploaded to FIT IoT Lab test bed.

#### Default State:

##### Firmware Output

main(): This is RIOT! (Version: 2020.07-devel-310-g88d0b-Kconfig_lpsxxx_tests)
CONFIG_LPSXXX_DEFAULT_ADDRESS=(0x5d)
Test application for lps331ap pressure sensor

Initializing lps331ap sensor
Initialization failed

#### Usage with CFLAGS 

/tests/driver_lpsxxx/Makefile

> CFLAGS += -DCONFIG_LPSXXX_DEFAULT_ADDRESS=0x5c


##### Firmware OutputLPS331AP/LPS25HB/LPS22HB

main(): This is RIOT! (Version: 2020.07-devel-310-g88d0b-Kconfig_lpsxxx_tests)
CONFIG_LPSXXX_DEFAULT_ADDRESS=0x5c
Test application for lps331ap pressure sensor

Initializing lps331ap sensor
Initialization failed

#### Usage with Kconfig

/tests/driver_lpsxxx/

> make menuconfig

##### Firmware Output

main(): This is RIOT! (Version: 2020.07-devel-310-g88d0b-Kconfig_lpsxxx_tests)
CONFIG_LPSXXX_DEFAULT_ADDRESS=0x5c
Test application for lps331ap pressure sensor

Initializing lps331ap sensor
Initialization failed

Note : The sensor is not available for interfacing hence configurability of macros were only tested.

### Issues/PRs references

#12888
@leandrolanzieri  Please merge this only after  #13981

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

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

-- Commit Summary --

  * drivers/lpsxxx : Add CONFIG_
  * drivers/lpsxxx : Expose to Kconfig

-- File Changes --

    M drivers/Kconfig (5)
    M drivers/include/lpsxxx.h (11)
    A drivers/lpsxxx/Kconfig (25)
    M drivers/lpsxxx/include/lpsxxx_params.h (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14000.patch
https://github.com/RIOT-OS/RIOT/pull/14000.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/14000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200501/fb50f53e/attachment-0001.htm>


More information about the notifications mailing list