![]() |
Mozzi
alpha 0.01.1t
sound synthesis library for Arduino
|
00001 00002 #ifndef UTILS_H_ 00003 #define UTILS_H_ 00004 00005 00006 #include "Arduino.h" 00007 00013 #define SET_PIN13_OUT (DDRB = DDRB | B00100000) 00014 00016 #define SET_PIN13_HIGH (PORTB = PORTB | B00100000) 00017 00019 #define SET_PIN13_LOW (PORTB = B00000000) 00020 00021 // macros for setting and clearing register bits 00022 #ifndef cbi 00023 #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) 00024 #endif 00025 #ifndef sbi 00026 #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) 00027 #endif 00028 00029 00030 #endif /* UTILS_H_ */