zephyr/tests
Johan Hedberg e405fc41f2 atomic: Add atomic_set_bit_to() API
Several places in the code have constructions like this:

	if (bool_variable) {
		atomic_set_bit(flags, FLAG);
	} else {
		atomic_clear_bit(flags, FLAG);
	}

To reduce the amount of code for such situations, introduce a new
atomic_set_bit_to() helper which lets you condense the above five
lines to a single one:

	atomic_set_bit_to(flags, FLAG, bool_variable);

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2019-01-25 17:35:44 -05:00
..
application_development
benchmarks
bluetooth Bluetooth: tests : Include building the LL split in CI 2019-01-25 11:19:39 +02:00
boards
booting/stub
cmsis_rtos_v1
cmsis_rtos_v2
compliance
coverage
crypto
drivers
include
kernel atomic: Add atomic_set_bit_to() API 2019-01-25 17:35:44 -05:00
lib tests: lib: mem_alloc: esp32 to skip newlib test 2019-01-25 11:20:42 -05:00
misc
net net: http: Remove HTTP client and server APIs 2019-01-25 11:21:20 -05:00
posix
shell
subsys
unit
ztest tests: ztest: Add zassert_mem_equal() 2019-01-25 10:35:39 +02:00
CMakeLists.txt
Kconfig