ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts  1.0
ESP8266ILI9341DisplayProject
Macros
bits.h File Reference

Go to the source code of this file.

Macros

#define BIT_SET(x, y)   (x |= (1 << (y)))
 Note: IF x and y are constants the compiler will fully reduce the expression. More...
 
#define BIT_CLR(x, y)   (x &= ~(1 << (y)))
 
#define BIT_TST(x, y)   ((x & (1 << (y))) ? (int) 1 : (int) 0)
 

Macro Definition Documentation

#define BIT_CLR (   x,
  y 
)    (x &= ~(1 << (y)))

Definition at line 18 of file bits.h.

#define BIT_SET (   x,
  y 
)    (x |= (1 << (y)))

Note: IF x and y are constants the compiler will fully reduce the expression.

Definition at line 17 of file bits.h.

#define BIT_TST (   x,
  y 
)    ((x & (1 << (y))) ? (int) 1 : (int) 0)

Definition at line 19 of file bits.h.