Skip to content

Commit e73cb66

Browse files
committed
style: run clang-format on public headers
Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
1 parent 0bdefa6 commit e73cb66

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

‎embedDIP.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ extern "C" {
7171
#include "core/image.h" /**< Image type and utilities. */
7272
#include "core/memory_manager.h" /**< Allocators and memory helpers. */
7373
#include "device/serial/serial.h" /**< Serial I/O abstraction. */
74-
#include "imgproc/compress.h" /**< JPEG compression helper. */
7574
#include "imgproc/color.h" /**< Color conversions and helpers. */
75+
#include "imgproc/compress.h" /**< JPEG compression helper. */
7676
#include "imgproc/connectedcomponents.h" /**< Connected components labeling. */
7777
#include "imgproc/drawing.h" /**< Drawing primitives and shapes. */
7878
#include "imgproc/fft.h" /**< Frequency-domain processing. */

‎embedDIP_configs.h‎

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
/* Hard-switch guard (legacy macros removed) */
1919
/* -------------------------------------------------------------------------- */
2020
#if defined(TARGET_BOARD_STM32F7) || defined(TARGET_BOARD_ESP32) || defined(TARGET_BOARD_OTHER)
21-
#error "Legacy TARGET_BOARD_* macros are not supported. Use EMBED_DIP_BOARD_* and EMBED_DIP_ARCH_* instead."
21+
#error \
22+
"Legacy TARGET_BOARD_* macros are not supported. Use EMBED_DIP_BOARD_* and EMBED_DIP_ARCH_* instead."
2223
#endif
2324

2425
/* -------------------------------------------------------------------------- */
@@ -37,35 +38,42 @@
3738

3839
/* Sanity check: exactly one board. */
3940
#if ((defined(EMBED_DIP_BOARD_STM32F7) ? 1 : 0) + (defined(EMBED_DIP_BOARD_ESP32) ? 1 : 0)) == 0
40-
#error "No board selected: define exactly one of EMBED_DIP_BOARD_STM32F7 or EMBED_DIP_BOARD_ESP32."
41+
#error \
42+
"No board selected: define exactly one of EMBED_DIP_BOARD_STM32F7 or EMBED_DIP_BOARD_ESP32."
4143
#elif ((defined(EMBED_DIP_BOARD_STM32F7) ? 1 : 0) + (defined(EMBED_DIP_BOARD_ESP32) ? 1 : 0)) > 1
42-
#error "Multiple boards selected: define only one of EMBED_DIP_BOARD_STM32F7 or EMBED_DIP_BOARD_ESP32."
44+
#error \
45+
"Multiple boards selected: define only one of EMBED_DIP_BOARD_STM32F7 or EMBED_DIP_BOARD_ESP32."
4346
#endif
4447

4548
/* Sanity check: exactly one architecture family. */
4649
#if ((defined(EMBED_DIP_ARCH_ARM) ? 1 : 0) + (defined(EMBED_DIP_ARCH_XTENSA) ? 1 : 0)) == 0
47-
#error "No architecture family selected: define exactly one of EMBED_DIP_ARCH_ARM or EMBED_DIP_ARCH_XTENSA."
50+
#error \
51+
"No architecture family selected: define exactly one of EMBED_DIP_ARCH_ARM or EMBED_DIP_ARCH_XTENSA."
4852
#elif ((defined(EMBED_DIP_ARCH_ARM) ? 1 : 0) + (defined(EMBED_DIP_ARCH_XTENSA) ? 1 : 0)) > 1
4953
#error "Multiple architecture families selected: define only one EMBED_DIP_ARCH_* macro."
5054
#endif
5155

5256
/* Sanity check: exactly one CPU variant. */
53-
#if ((defined(EMBED_DIP_CPU_CORTEX_M7) ? 1 : 0) + (defined(EMBED_DIP_CPU_LX6) ? 1 : 0) + \
57+
#if ((defined(EMBED_DIP_CPU_CORTEX_M7) ? 1 : 0) + (defined(EMBED_DIP_CPU_LX6) ? 1 : 0) + \
5458
(defined(EMBED_DIP_CPU_LX7) ? 1 : 0)) == 0
55-
#error "No CPU selected: define exactly one of EMBED_DIP_CPU_CORTEX_M7, EMBED_DIP_CPU_LX6, EMBED_DIP_CPU_LX7."
56-
#elif ((defined(EMBED_DIP_CPU_CORTEX_M7) ? 1 : 0) + (defined(EMBED_DIP_CPU_LX6) ? 1 : 0) + \
59+
#error \
60+
"No CPU selected: define exactly one of EMBED_DIP_CPU_CORTEX_M7, EMBED_DIP_CPU_LX6, EMBED_DIP_CPU_LX7."
61+
#elif ((defined(EMBED_DIP_CPU_CORTEX_M7) ? 1 : 0) + (defined(EMBED_DIP_CPU_LX6) ? 1 : 0) + \
5762
(defined(EMBED_DIP_CPU_LX7) ? 1 : 0)) > 1
5863
#error "Multiple CPUs selected: define only one EMBED_DIP_CPU_* macro."
5964
#endif
6065

6166
/* Board/architecture/CPU compatibility matrix. */
6267
#if defined(EMBED_DIP_BOARD_STM32F7)
6368
#if !(defined(EMBED_DIP_ARCH_ARM) && defined(EMBED_DIP_CPU_CORTEX_M7))
64-
#error "Invalid combination: EMBED_DIP_BOARD_STM32F7 requires EMBED_DIP_ARCH_ARM + EMBED_DIP_CPU_CORTEX_M7."
69+
#error \
70+
"Invalid combination: EMBED_DIP_BOARD_STM32F7 requires EMBED_DIP_ARCH_ARM + EMBED_DIP_CPU_CORTEX_M7."
6571
#endif
6672
#elif defined(EMBED_DIP_BOARD_ESP32)
67-
#if !(defined(EMBED_DIP_ARCH_XTENSA) && (defined(EMBED_DIP_CPU_LX6) || defined(EMBED_DIP_CPU_LX7)))
68-
#error "Invalid combination: EMBED_DIP_BOARD_ESP32 requires EMBED_DIP_ARCH_XTENSA + (EMBED_DIP_CPU_LX6 or EMBED_DIP_CPU_LX7)."
73+
#if !(defined(EMBED_DIP_ARCH_XTENSA) && \
74+
(defined(EMBED_DIP_CPU_LX6) || defined(EMBED_DIP_CPU_LX7)))
75+
#error \
76+
"Invalid combination: EMBED_DIP_BOARD_ESP32 requires EMBED_DIP_ARCH_XTENSA + (EMBED_DIP_CPU_LX6 or EMBED_DIP_CPU_LX7)."
6977
#endif
7078
#endif
7179

‎wrapper/ImageWrapper.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ extern "C" {
1414
#include "core/memory_manager.h" /**< Allocators and memory helpers. */
1515
#include "device/serial/serial.h" /**< Serial I/O abstraction. */
1616
#include "imgproc/color.h" /**< Color conversions and helpers. */
17-
#include "imgproc/connectedcomponents.h" /**< Connected components labeling. */
1817
#include "imgproc/compress.h" /**< JPEG compression helper. */
18+
#include "imgproc/connectedcomponents.h" /**< Connected components labeling. */
1919
#include "imgproc/drawing.h" /**< Drawing primitives and shapes. */
2020
#include "imgproc/fft.h" /**< Frequency-domain processing. */
2121
#include "imgproc/filter.h" /**< Spatial filtering and kernels. */

0 commit comments

Comments
 (0)