2011-10-19 00:04:59 +02:00
|
|
|
#define F_CPU 12000000UL
|
|
|
|
|
2011-12-05 22:17:00 +01:00
|
|
|
// Bitshifting
|
2011-10-19 00:04:59 +02:00
|
|
|
#define set_bit(var, bit) ((var) |= (1 << (bit)))
|
|
|
|
#define clear_bit(var, bit) ((var) &= (unsigned)~(1 << (bit)))
|
|
|
|
|
|
|
|
#define sleep_nop(cnt) for (uint8_t i = 0; i < cnt; i++) { asm volatile("nop"::); }
|
|
|
|
|