diff options
author | Chris Johns <chrisj@rtems.org> | 2016-02-18 15:41:28 +1100 |
---|---|---|
committer | Amar Takhar <verm@darkbeer.org> | 2016-05-02 20:51:26 -0400 |
commit | 25d55d49c3f52a12a52def776104e0c9c721e680 (patch) | |
tree | 659abcd9eefe270c58fe9f7027fe192f08d95b20 /c_user/key_concepts.rst | |
parent | Fix double quotes. (diff) | |
download | rtems-docs-25d55d49c3f52a12a52def776104e0c9c721e680.tar.bz2 |
Change code to code-block.
Diffstat (limited to '')
-rw-r--r-- | c_user/key_concepts.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c_user/key_concepts.rst b/c_user/key_concepts.rst index e9a3689..bc0f2e6 100644 --- a/c_user/key_concepts.rst +++ b/c_user/key_concepts.rst @@ -50,7 +50,7 @@ light to blink might be called "LITE". The ``rtems_build_name`` routine is provided to build an object name from four ASCII characters. The following example illustrates this: -.. code:: c +.. code-block:: c rtems_name my_name; my_name = rtems_build_name( 'L', 'I', 'T', 'E' ); @@ -70,7 +70,7 @@ attempts to convert the name into a printable string. The following example illustrates the use of this method to print an object name: -.. code:: c +.. code-block:: c #include <rtems.h> #include <rtems/bspIo.h> @@ -106,7 +106,7 @@ The thirty-two bit format for an object ID is composed of four parts: API, object class, node, and index. The data type ``rtems_id`` is used to store object IDs. -.. code:: c +.. code-block:: c 31 27 26 24 23 16 15 0 +---------+-------+--------------+-------------------------------+ @@ -129,7 +129,7 @@ Sixteen Bit Object ID Format The sixteen bit format for an object ID is composed of three parts: API, object class, and index. The data type ``rtems_id`` is used to store object IDs. -.. code:: c +.. code-block:: c 15 11 10 8 7 0 +---------+-------+--------------+ @@ -179,7 +179,7 @@ prototyped as follows: .. index:: rtems_object_id_get_node .. index:: rtems_object_id_get_index -.. code:: c +.. code-block:: c uint32_t rtems_object_id_get_api( rtems_id ); uint32_t rtems_object_id_get_class( rtems_id ); |