avr_macros.h
Go to the documentation of this file. 36 #pragma message ( "avr_macros.h included" ) 39 #define F_CPU 16000000UL 48 #define F_10kHz 10000UL 49 #define F_20kHz 20000UL 50 #define F_40kHz 40000UL 51 #define F_50kHz 50000UL 52 #define F_100kHz 100000UL 53 #define F_200kHz 200000UL 54 #define F_500kHz 500000UL 55 #define F_1000kHz 1000000UL 56 #define F_1Mhz 1000000UL 58 #define F_62500Hz 62500UL 59 #define F_7812Hz 7812UL 71 #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~(1<<bit)) 72 #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= (1<<bit)) 74 #define SETBIT(ADDRESS,BIT) (ADDRESS |= (1<<BIT)) 75 #define CLEARBIT(ADDRESS,BIT) (ADDRESS &= ~(1<<BIT)) 76 #define FLIPBIT(ADDRESS,BIT) (ADDRESS ^= (1<<BIT)) 77 #define CHECKBIT(ADDRESS,BIT) (ADDRESS & (1<<BIT))
إرسال تعليق