From 2c2d5715d56924c2e067434c285fddbfe78382b3 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 29 Jun 2012 19:14:42 -0400 Subject: Update page for Breathe fixes. Breathe now supports macros with arguments, so use that. Signed-off-by: Marti Bolivar --- source/libmaple/api/util.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source/libmaple') diff --git a/source/libmaple/api/util.rst b/source/libmaple/api/util.rst index 434307e..54377c0 100644 --- a/source/libmaple/api/util.rst +++ b/source/libmaple/api/util.rst @@ -16,17 +16,18 @@ Bit Manipulation The following macros are useful for bit manipulation. -**BIT(shift)**: ``1UL << (shift)`` - -**BIT_MASK_SHIFT(mask, shift)**: ``mask << shift`` - -**GET_BITS(x, m, n)**: Bits ``m`` to ``n`` of ``x``, right-aligned. - -**IS_POWER_OF_TWO(v)**: True iff ``v`` is a power of two (1, 2, 4, etc.) +.. doxygendefine:: BIT +.. doxygendefine:: BIT_MASK_SHIFT +.. doxygendefine:: GET_BITS +.. doxygendefine:: IS_POWER_OF_TWO Failure Routines ---------------- +``throb()`` is called by various routines to throb a built-in +LED. **Usually, you shouldn't call it yourself**; use something like +``ASSERT(0)`` (or the libc ``abort()`` function) instead. + .. doxygenfunction:: throb Asserts and Debug Levels -- cgit v1.2.3