gibts auch als macroZitat von RIFMAN
** \def loop_until_bit_is_set
\ingroup avr_sfr
\code #include <avr/io.h>\endcode
Wait until bit \c bit in IO register \c sfr is set. */
#define loop_until_bit_is_set(sfr, bit) do { } while (bit_is_clear(sfr, bit))
/** \def loop_until_bit_is_clear
\ingroup avr_sfr
\code #include <avr/io.h>\endcode
Wait until bit \c bit in IO register \c sfr is clear. */
#define loop_until_bit_is_clear(sfr, bit) do { } while (bit_is_set(sfr, bit))
/*@}*/
in:
#include <avr/sfr_defs.h>
Lesezeichen