8.6.4 loop_until_bit_is_clear Macro

A macro that waits until a bit becomes clear in an SFR.

Include

<avr/sfr_defs.h>

Prototype

int loop_until_bit_is_clear(sfr, bit_number);

Remarks

This macro loops until the specified bit in sfr becomes clear.

Example

#include <xc.h>
#include <avr/sfr_defs.h>
int main(void)
{
  loop_until_bit_is_clear(PINA, PINA3);
  process();
}