| 1 | /** |
| 2 | * @file compatibility.h |
| 3 | * Class declaration for SPI helper files |
| 4 | */ |
| 5 | |
| 6 | /** |
| 7 | * Example of compatibility.h class declaration for timing functions portability |
| 8 | * |
| 9 | * @defgroup Porting_Timing Porting: Timing |
| 10 | * @{ |
| 11 | */ |
| 12 | |
| 13 | #ifndef RF24_UTILITY_TEMPLATE_COMPATIBLITY_H_ |
| 14 | #define RF24_UTILITY_TEMPLATE_COMPATIBLITY_H_ |
| 15 | |
| 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | |
| 22 | void __msleep(int millisec); |
| 23 | |
| 24 | void __usleep(int microsec); |
| 25 | |
| 26 | void __start_timer(); |
| 27 | |
| 28 | uint32_t __millis(); |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | /**@}*/ |
| 35 | |
| 36 | #endif // RF24_UTILITY_TEMPLATE_COMPATIBLITY_H_ |