123456789101112131415161718192021222324252627 |
- //==============================================================================
- // Purpose: Allg. Makros und Defs.
- //
- // Created on: 04.05.2012 by IPE
- //
- // History
- // 04.05.2012 neu, T.Maurer
- //==============================================================================
- #ifndef __UTILS_H__
- #define __UTILS_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define CHECKBIT(REG,BIT) REG & (1<<BIT) ? 1:0
- #define SETBIT(REG,BIT) REG |= (1<<BIT)
- #define CLEARBIT(REG,BIT) REG &= ~(1<<BIT)
- #define TOGGLEBIT(REG,BIT) REG ^= (1<<BIT)
- #ifdef __cplusplus
- }
- #endif
- #endif /* ifndef*/
|