Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ActiveLevel.h
00001 /* ActiveLevel.h 00002 00003 */ 00004 00005 #ifndef ActiveLevel_ 00006 #define ActiveLevel_ 00007 00008 // Set, Clear Toggle 00009 #ifndef ActiveLevelLow 00010 #define Active(BitVal,value) (value = value | BitVal) 00011 #define Inactive(BitVal,value) (value = value & ~ BitVal) 00012 #else 00013 #define Inactive(BitVal,value) (value = value | BitVal) 00014 #define Active(BitVal,value) (value = value & ~ BitVal) 00015 #endif 00016 00017 #define Toggle(BitVal,value) (value = value ^ BitVal) 00018 00019 #define High(BitVal,value) ((value & BitVal)!=0) 00020 #define Low(BitVal,value) ((value & BitVal)==0) 00021 00022 #endif 00023
Generated on Tue Jul 12 2022 18:42:56 by
1.7.2