ODALID Librairie Carte MIFARE v0.5
Chargement...
Recherche...
Aucune correspondance
Tools.h
Aller à la documentation de ce fichier.
1/*
2*
3* Copyright (c) 2009-2021 ODALID - https://odalid.com
4*
5*/
6
15#ifndef TOOLS_H
16#define TOOLS_H
17
18#include "TypeDefs.h"
19#include "Hardware.h"
20#include "Librairie.h"
21
22#if (defined (__linux__) || defined (__linux) || defined (linux))
23#include <unistd.h>
24#endif
25
26#if defined (__cplusplus)
27extern "C" {
28#endif
29
30#ifdef _WIN32
31 #define DELAYS_MS(ms) Sleep ((ms))
32 #define DELAYS_S(sec) Sleep ((sec) * 1000)
33#else
34 #define DELAYS_MS(ms) usleep ((ms) * 1000)
35 #define DELAYS_S(sec) sleep ((sec))
36#endif
37
38#if defined (__cplusplus)
39}
40#endif
41
42#endif /*TOOLS_H*/