backported interrupts.c from i2c branch

This commit is contained in:
Markus Fröschle
2013-08-08 15:47:09 +00:00
parent 42c96608e6
commit 7adab9f89b
4 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/*
* bas_utils.h
*
* Created on: 08.08.2013
* Author: froesm1
*/
#ifndef _BAS_UTILS_H_
#define _BAS_UTILS_H_
#define CLEAR_BIT(p,bit) p &= ~(bit)
#define CLEAR_BIT_NO(p,nr) CLEAR_BIT(p, (1 << (nr)))
#endif /* _BAS_UTILS_H_ */