zephyr/drivers/mipi_dbi
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
..
CMakeLists.txt drivers: mipi_dbi: add support for parallel 8080/6800 modes using GPIO 2024-09-20 11:56:22 -05:00
Kconfig drivers: mipi_dbi: add support for parallel 8080/6800 modes using GPIO 2024-09-20 11:56:22 -05:00
Kconfig.bitbang drivers: mipi_dbi: add support for parallel 8080/6800 modes using GPIO 2024-09-20 11:56:22 -05:00
Kconfig.nxp_flexio_lcdif boards: nxp: Removing CONFIG_PINCTRL from the boards defconfig 2024-10-15 19:09:45 -04:00
Kconfig.nxp_lcdic
Kconfig.smartbond da1469x: Remove CONFIG_PINCTRL from all defconfig files 2024-10-08 16:57:41 +02:00
Kconfig.spi
Kconfig.stm32_fmc drivers: mipi_dbi: add driver for st,stm32-fmc 2024-08-17 08:56:04 -04:00
mipi_dbi_bitbang.c drivers: mipi_dbi: add support for parallel 8080/6800 modes using GPIO 2024-09-20 11:56:22 -05:00
mipi_dbi_nxp_flexio_lcdif.c drivers: mipi_dbi: lower ROM usage by switching reset time to k_timeout_t 2024-08-17 08:55:28 -04:00
mipi_dbi_nxp_lcdic.c drivers: mipi_dbi: nxp_lcdic: add support for 8080 mode 2024-10-04 22:50:45 +01:00
mipi_dbi_smartbond.c sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
mipi_dbi_spi.c drivers: mpi_dbi: Fix wrong bit index for 3wire mode 2024-08-19 15:18:09 -04:00
mipi_dbi_stm32_fmc.c drivers: mipi_dbi: update macro to get address 2024-10-10 14:57:58 -04:00