zephyr/samples
Chris Friedt 9504034733 sys: util: use BITS_PER_BYTE macro instead of the magic number 8
Obviously, everyone knows that there are 8 bits per byte, so
there isn't a lot of magic happening, per se, but it's also
helpful to clearly denote where the magic number 8 is referring
to the number of bits in a byte.

Occasionally, 8 will refer to a field size or offset in a
structure, MMR, or word. Occasionally, the number 8 will refer
to the number of bytes in a 64-bit value (which should probably
be replaced with `sizeof(uint64_t)`).

For converting bits to bytes, or vice-versa, let's use
`BITS_PER_BYTE` for clarity (or other appropriate `BITS_PER_*`
macros).

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-11-16 15:22:35 -05:00
..
application_development doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
arch doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
basic driver: pwm: infineon: cyw920829m2evk_02 pwm 2024-10-26 03:57:41 +01:00
bluetooth bluetooth: samples: Add samples showing basic channel sounding features 2024-11-16 15:07:20 -05:00
boards samples: boards: nordic: add nrf_sys_event sample 2024-11-16 15:08:11 -05:00
cpp doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
drivers samples: drivers: Add MAX78002EVKIT sample overlay files 2024-11-16 15:09:57 -05:00
fuel_gauge doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
hello_world samples: hello_world: remove redundant title 2024-09-26 17:40:42 -04:00
kernel doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
modules boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
net net: mqtt-sn: Update MQTT-SN Publisher Sample with Gateway Discovery 2024-11-16 15:08:27 -05:00
philosophers samples: doc: convert philosophers sample to code-sample directive 2024-09-23 12:00:00 +02:00
posix doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
psa samples: psa: persistent_key: add the persistent_key sample 2024-10-07 13:38:43 +02:00
sensor samples: sensor: die temperature polling: remove redundant configuration 2024-11-16 15:20:24 -05:00
shields doc: fix occurrences of broken zephyr_file: links 2024-10-30 09:43:50 -07:00
subsys sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
synchronization samples/synchronization: fix thread b pinning 2024-07-30 18:30:30 +01:00
sysbuild doc: fix occurrences of broken zephyr_file: links 2024-10-30 09:43:50 -07:00
tfm_integration boards: st: adopt new zephyr:board directive and role 2024-10-24 17:51:15 +02:00
userspace samples: userspace: cortex_r8_virtual: Set CONFIG_DYNAMIC_OBJECTS=y 2024-10-01 09:58:22 +02:00
index.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
sample_definition_and_criteria.rst doc: overhaul sample criteria and expectations 2024-09-12 10:03:30 +02:00