This is an automated email from the ASF dual-hosted git repository. marko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push: new 1d1dcfd i2c_nrf52_twim: add dependency to stats. Turn off statistics by default. new baf2e9c Merge pull request #1606 from mkiiskila/i2c_driver_stats_fix 1d1dcfd is described below commit 1d1dcfde569da84019430c9898cddbd56d55e792 Author: Marko Kiiskila <ma...@apache.org> AuthorDate: Thu Jan 17 15:05:25 2019 -0800 i2c_nrf52_twim: add dependency to stats. Turn off statistics by default. --- hw/bus/drivers/i2c_nrf52_twim/pkg.yml | 3 +++ hw/bus/drivers/i2c_nrf52_twim/src/i2c_nrf52_twim.c | 2 ++ hw/bus/drivers/i2c_nrf52_twim/syscfg.yml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/bus/drivers/i2c_nrf52_twim/pkg.yml b/hw/bus/drivers/i2c_nrf52_twim/pkg.yml index 12fa494..a0ed0d1 100644 --- a/hw/bus/drivers/i2c_nrf52_twim/pkg.yml +++ b/hw/bus/drivers/i2c_nrf52_twim/pkg.yml @@ -26,3 +26,6 @@ pkg.keywords: pkg.deps: - hw/bus - hw/bus/drivers/i2c_common + +pkg.req_apis.I2C_NRF52_TWIM_STAT: + - stats diff --git a/hw/bus/drivers/i2c_nrf52_twim/src/i2c_nrf52_twim.c b/hw/bus/drivers/i2c_nrf52_twim/src/i2c_nrf52_twim.c index 1587f6c..3143a26 100644 --- a/hw/bus/drivers/i2c_nrf52_twim/src/i2c_nrf52_twim.c +++ b/hw/bus/drivers/i2c_nrf52_twim/src/i2c_nrf52_twim.c @@ -26,7 +26,9 @@ #include "bus/drivers/i2c_common.h" #include "mcu/nrf52_hal.h" #include "nrfx.h" +#if MYNEWT_VAL(I2C_NRF52_TWIM_STAT) #include "stats/stats.h" +#endif #define TWIM_GPIO_PIN_CNF \ ((GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos) | \ diff --git a/hw/bus/drivers/i2c_nrf52_twim/syscfg.yml b/hw/bus/drivers/i2c_nrf52_twim/syscfg.yml index 6639015..9834f34 100644 --- a/hw/bus/drivers/i2c_nrf52_twim/syscfg.yml +++ b/hw/bus/drivers/i2c_nrf52_twim/syscfg.yml @@ -20,7 +20,7 @@ syscfg.defs: I2C_NRF52_TWIM_STAT: description: > Enable statistics for driver errors and applied workarounds. - value: 1 + value: 0 I2C_NRF52_TWIM_SCL_RECOVERY_DELAY_USEC: description: > Time to wait for activity on SCL line after triggering start task