Patrik Flykt
24d71431e9
all: Add 'U' suffix when using unsigned variables
...
Add a 'U' suffix to values when computing and comparing against
unsigned variables.
Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2019-03-28 17:15:58 -05:00
Patrik Flykt
dfc2cd038d
drivers/led: Remove case ranges from the LP3943 LED driver
...
Remove case ranges from the LP3943 LED driver in order to clean
up GNUisms and make the code standards compliant.
Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2019-03-06 17:44:04 -05:00
Kumar Gala
75d84ffd7a
led: lp3943: Remove dts_fixup.h
...
Since the lp3943 led driver still supports both DTS and non-DTS
configuration, we update the code to use DT_<COMPAT>_<INSTANCE>
defines for the CONFIG_HAS_DTS_I2C case.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-01-31 09:09:36 -06:00
Patrik Flykt
8ff96b5a57
drivers: Add 'U' to unsigned variable assignments
...
Add 'U' to a value when assigning it to an unsigned variable.
MISRA-C rule 7.2
Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2018-12-04 22:51:56 -05:00
Anas Nashif
7e61660c9c
driver: led: move to new logger
...
Move drivers to new logger and change samples enabling logging in
prj.conf.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-10-10 10:22:01 -04:00
Manivannan Sadhasivam
bb394bbafb
drivers: led: Add LED driver support for TI LP3943
...
Add support for Texas Instruments LP3943 - 16 channel LED driver.
Supported blinking period: 0 to 1600ms
Supported brightness value: 0 to 100%
This driver supports the following APIs:
1. led_blink
2. led_set_brightness
3. led_on
4. led_off
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2018-04-27 10:46:53 -05:00