diff --git a/doc/build/dts/api-usage.rst b/doc/build/dts/api-usage.rst index 5bb83900338..f976c939570 100644 --- a/doc/build/dts/api-usage.rst +++ b/doc/build/dts/api-usage.rst @@ -349,7 +349,7 @@ compatible with less typing, like this: .. code-block:: c - #include + #include #define DT_DRV_COMPAT my_driver_compat diff --git a/doc/build/dts/bindings.rst b/doc/build/dts/bindings.rst index 6393728a04a..08c557e324e 100644 --- a/doc/build/dts/bindings.rst +++ b/doc/build/dts/bindings.rst @@ -1132,7 +1132,7 @@ gpio_dt_spec``, then use it like this: .. code-block:: C - #include + #include #define ZEPHYR_USER_NODE DT_PATH(zephyr_user) diff --git a/doc/build/dts/howtos.rst b/doc/build/dts/howtos.rst index af4b184fffa..5eef0c44c53 100644 --- a/doc/build/dts/howtos.rst +++ b/doc/build/dts/howtos.rst @@ -415,7 +415,7 @@ device-specific configuration and data structures and API functions, like this: .. code-block:: c /* my_driver.c */ - #include + #include /* Define data (RAM) and configuration (ROM) structures: */ struct my_dev_data { diff --git a/doc/connectivity/networking/api/8021Qav.rst b/doc/connectivity/networking/api/8021Qav.rst index d5a80999e75..dced6817ec2 100644 --- a/doc/connectivity/networking/api/8021Qav.rst +++ b/doc/connectivity/networking/api/8021Qav.rst @@ -42,9 +42,9 @@ The application can configure the credit-based shaper like this: .. code-block:: c - #include - #include - #include + #include + #include + #include static void qav_set_status(struct net_if *iface, int queue_id, bool enable) diff --git a/doc/develop/test/ztest.rst b/doc/develop/test/ztest.rst index 1db7b041fe0..d7870061729 100644 --- a/doc/develop/test/ztest.rst +++ b/doc/develop/test/ztest.rst @@ -196,7 +196,7 @@ Here is a generic template for a test showing the expected use of .. code-block:: C - #include + #include extern void test_sometest1(void); extern void test_sometest2(void); @@ -227,7 +227,7 @@ Alternatively, it is possible to split tests across multiple files using .. code-block:: C - #include + #include void test_sometest1(void) { zassert_true(1, "true"); @@ -251,7 +251,7 @@ state and different test suites need to run. This is achieved in the following: .. code-block:: C - #include + #include struct state { bool is_hibernating; diff --git a/doc/hardware/pinctrl/index.rst b/doc/hardware/pinctrl/index.rst index 757c332d078..fcba106380d 100644 --- a/doc/hardware/pinctrl/index.rst +++ b/doc/hardware/pinctrl/index.rst @@ -446,7 +446,7 @@ The example below contains a complete example of a device driver that uses the #define DT_DRV_COMPAT mydev ... - #include + #include ... struct mydev_config { diff --git a/doc/kernel/data_structures/mpsc_pbuf.rst b/doc/kernel/data_structures/mpsc_pbuf.rst index faf10b6de08..6a12c427131 100644 --- a/doc/kernel/data_structures/mpsc_pbuf.rst +++ b/doc/kernel/data_structures/mpsc_pbuf.rst @@ -90,7 +90,7 @@ User header structure must start with internal header: .. code-block:: c - #include + #include struct foo_header { MPSC_PBUF_HDR; diff --git a/doc/kernel/drivers/index.rst b/doc/kernel/drivers/index.rst index 4ef57ed3b07..1424372bd2a 100644 --- a/doc/kernel/drivers/index.rst +++ b/doc/kernel/drivers/index.rst @@ -194,7 +194,7 @@ A device-specific API definition typically looks like this: .. code-block:: C - #include + #include /* When extensions need not be invoked from user mode threads */ int specific_do_that(const struct device *dev, int foo); @@ -235,7 +235,7 @@ implementation of both the subsystem API and the specific APIs: #ifdef CONFIG_USERSPACE - #include + #include int z_vrfy_specific_from_user(const struct device *dev, int bar) { diff --git a/doc/kernel/timing_functions/index.rst b/doc/kernel/timing_functions/index.rst index cfcf3f9f492..5f21204c4e6 100644 --- a/doc/kernel/timing_functions/index.rst +++ b/doc/kernel/timing_functions/index.rst @@ -51,7 +51,7 @@ This shows an example on how to use the timing functions: .. code-block:: c - #include + #include void gather_timing(void) { diff --git a/doc/kernel/usermode/memory_domain.rst b/doc/kernel/usermode/memory_domain.rst index 45ce2af0a53..61913a73cc6 100644 --- a/doc/kernel/usermode/memory_domain.rst +++ b/doc/kernel/usermode/memory_domain.rst @@ -237,7 +237,7 @@ BSS. .. code-block:: c - #include + #include /* Declare a k_mem_partition "my_partition" that is read-write to * user mode. Note that we do not specify a base address or size. diff --git a/doc/services/debugging/gdbstub.rst b/doc/services/debugging/gdbstub.rst index 314f2057e19..2361f3073aa 100644 --- a/doc/services/debugging/gdbstub.rst +++ b/doc/services/debugging/gdbstub.rst @@ -252,7 +252,7 @@ how GDB stub works. test () at /samples/subsys/debug/gdbstub/src/main.c:13 13 { (gdb) list - 8 #include + 8 #include 9 10 #define STACKSIZE 512 11 diff --git a/doc/services/logging/index.rst b/doc/services/logging/index.rst index 4ad4ae75da7..2a513d7b745 100644 --- a/doc/services/logging/index.rst +++ b/doc/services/logging/index.rst @@ -225,7 +225,7 @@ if custom log level is not provided. .. code-block:: c - #include + #include LOG_MODULE_REGISTER(foo, CONFIG_FOO_LOG_LEVEL); If the module consists of multiple files, then ``LOG_MODULE_REGISTER()`` should @@ -237,7 +237,7 @@ is used if custom log level is not provided. .. code-block:: c - #include + #include /* In all files comprising the module but one */ LOG_MODULE_DECLARE(foo, CONFIG_FOO_LOG_LEVEL); @@ -250,7 +250,7 @@ provided. .. code-block:: c - #include + #include static inline void foo(void) { @@ -286,7 +286,7 @@ In order to use instance level filtering following steps must be performed: .. code-block:: c - #include + #include struct foo_object { LOG_INSTANCE_PTR_DECLARE(log); @@ -345,7 +345,7 @@ Following snippet shows how logging can be processed in simple forever loop. .. code-block:: c - #include + #include void main(void) { @@ -613,7 +613,7 @@ to the pool. It is up to the backend how message is processed. .. code-block:: c - #include + #include void put(const struct log_backend *const backend, struct log_msg *msg) diff --git a/doc/services/settings/index.rst b/doc/services/settings/index.rst index a6f9e9d2371..870d337df5a 100644 --- a/doc/services/settings/index.rst +++ b/doc/services/settings/index.rst @@ -225,10 +225,10 @@ up from where it was before restart. .. code-block:: c - #include - #include - #include - #include + #include + #include + #include + #include #include #define DEFAULT_FOO_VAL_VALUE 0 diff --git a/doc/services/smf/index.rst b/doc/services/smf/index.rst index 8f01bb2cb46..b94be2c3eba 100644 --- a/doc/services/smf/index.rst +++ b/doc/services/smf/index.rst @@ -122,7 +122,7 @@ the initial state is S0. Code:: - #include + #include /* Forward declaration of state table */ static const struct smf_state demo_states[]; @@ -230,7 +230,7 @@ S0 and S1 share a parent state and S0 is the initial state. Code:: - #include + #include /* Forward declaration of state table */ static const struct smf_state demo_states[];