doc: fix example syntax

@example is for including a file containing the example code.
This commit is contained in:
Karl Palsson 2019-06-10 10:59:54 +00:00
parent 9e42251d6f
commit d66c8677df

View File

@ -186,7 +186,7 @@ static inline uint32_t __cm_atomic_set(uint32_t *val)
* @note It is safe to use this block inside normal code and in interrupt * @note It is safe to use this block inside normal code and in interrupt
* routine. * routine.
* *
* @example 1: Basic usage of atomic block * Basic usage of atomic block
* *
* @code * @code
* uint64_t value; // This value is used somewhere in interrupt * uint64_t value; // This value is used somewhere in interrupt
@ -198,7 +198,7 @@ static inline uint32_t __cm_atomic_set(uint32_t *val)
* } // interrupts is restored automatically * } // interrupts is restored automatically
* @endcode * @endcode
* *
* @example 2: Use of return inside block: * Use of return inside block
* *
* @code * @code
* uint64_t value; // This value is used somewhere in interrupt * uint64_t value; // This value is used somewhere in interrupt
@ -237,7 +237,7 @@ static inline uint32_t __cm_atomic_set(uint32_t *val)
* @note It is safe to use this block inside normal code and in interrupt * @note It is safe to use this block inside normal code and in interrupt
* routine. * routine.
* *
* @example 1: Basic usage of atomic context * Basic usage of atomic context
* *
* @code * @code
* uint64_t value; // This value is used somewhere in interrupt * uint64_t value; // This value is used somewhere in interrupt
@ -253,7 +253,7 @@ static inline uint32_t __cm_atomic_set(uint32_t *val)
* } // interrupts is restored automatically * } // interrupts is restored automatically
* @endcode * @endcode
* *
* @example 2: Usage of atomic context inside atomic reader fcn. * Usage of atomic context inside atomic reader fcn.
* *
* @code * @code
* uint64_t value; // This value is used somewhere in interrupt * uint64_t value; // This value is used somewhere in interrupt