modified busy waiting loops (new function: waitfor(us, condition) to only wait for a certain time until the expected condition comes true, otherwise just return without the job done

This commit is contained in:
Markus Fröschle
2012-11-17 14:22:34 +00:00
parent 08b35e4997
commit 913ea1f46a
3 changed files with 79 additions and 13 deletions

19
include/bas_types.h Normal file
View File

@@ -0,0 +1,19 @@
/*
* bas_types.h
*
* Created on: 17.11.2012
* Author: mfro
*/
#ifndef BAS_TYPES_H_
#define BAS_TYPES_H_
#ifndef _CPLUSPLUS_
typedef int bool;
#define TRUE 1
#define FALSE 0
#endif /* _CPLUSPLUS_ */
#endif /* BAS_TYPES_H_ */