zephyr/drivers/adc
Andy Ross 32bb2395c2 timeout: Fix up API usage
Kernel timeouts have always been a 32 bit integer despite the
existence of generation macros, and existing code has been
inconsistent about using them.  Upcoming commits are going to make the
timeout arguments opaque, so fix things up to be rigorously correct.
Changes include:

+ Adding a K_TIMEOUT_EQ() macro for code that needs to compare timeout
  values for equality (e.g. with K_FOREVER or K_NO_WAIT).

+ Adding a k_msleep() synonym for k_sleep() which can continue to take
  integral arguments as k_sleep() moves away to timeout arguments.

+ Pervasively using the K_MSEC(), K_SECONDS(), et. al. macros to
  generate timeout arguments.

+ Removing the usage of K_NO_WAIT as the final argument to
  K_THREAD_DEFINE().  This is just a count of milliseconds and we need
  to use a zero.

This patch include no logic changes and should not affect generated
code at all.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-03-31 19:40:47 -04:00
..
adc_common.c adc: common: handle gain of 128 in adc_gain_invert() 2020-02-05 14:28:09 -06:00
adc_context.h timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
adc_handlers.c
adc_lmp90xxx.c global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
adc_mchp_xec.c drivers: microchip: Convert microchip drivers to new DT_INST macros 2020-03-26 16:31:52 -05:00
adc_mcp320x.c drivers: adc: add Microchip MCP320x driver 2020-03-27 16:17:06 +01:00
adc_mcux_adc12.c global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
adc_mcux_adc16.c
adc_nrfx_adc.c
adc_nrfx_saadc.c drivers: nrfx: Update implementations after switching to nrfx 2.0.0 2019-11-08 14:54:12 +01:00
adc_sam0.c
adc_sam_afec.c
adc_shell.c treewide: use full path to adc.h header 2020-01-26 17:52:12 +01:00
adc_stm32.c drivers: stm32: Convert STM32 drivers to new DT_INST macros 2020-03-26 12:22:12 -05:00
CMakeLists.txt drivers: adc: add Microchip MCP320x driver 2020-03-27 16:17:06 +01:00
Kconfig drivers: adc: add Microchip MCP320x driver 2020-03-27 16:17:06 +01:00
Kconfig.lmp90xxx drivers: adc: add LMP90xxx ADC driver with GPIO 2020-01-09 17:27:52 +01:00
Kconfig.mcp320x drivers: adc: add Microchip MCP320x driver 2020-03-27 16:17:06 +01:00
Kconfig.mcux boards: frdm_kw41z: Override ADC vref choice properly 2020-02-14 22:12:21 +02:00
Kconfig.nrfx kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sam0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sam_afec kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.stm32 drivers/adc: stm32: Don't enable ADC instance by default in driver 2020-02-05 13:56:26 -06:00
Kconfig.xec kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00