RockBLOCK 9704 C Library
Doxygen documentation for the RockBLOCK 9704 C Library.
crossplatform.h
Go to the documentation of this file.
1 #ifndef CROSSPLATFORM_H
2 #define CROSSPLATFORM_H
3 
4 #ifdef ARDUINO
5 #include <Arduino.h>
6 #endif
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #if defined(_WIN32)
13  #include <windows.h>
14  #include <string.h>
15  #include <stdint.h>
16 
17  #ifndef PATH_MAX
18  #define PATH_MAX MAX_PATH
19  #endif
20 
21  int usleep(unsigned int microseconds);
22 
23  char * stpncpy (char * dst, const char * src, size_t len);
24 
25  unsigned long millis(void);
26  void delay(uint32_t ms);
27 #elif defined(__linux__) || defined(__APPLE__)
28  #include <stdint.h>
29 
30  unsigned long millis(void);
31  void delay(uint32_t ms);
32 #endif
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // CROSSPLATFORM_H
unsigned long millis(void)
Definition: crossplatform.c:36
void delay(uint32_t ms)
Definition: crossplatform.c:43