mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
chipset/bcm: provide sleep for Visual Studio
This commit is contained in:
parent
c9207d2082
commit
889634f398
@ -43,7 +43,17 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
// map sleep() to Sleep()
|
||||||
|
#include "Windows.h"
|
||||||
|
unsigned int sleep(unsigned int seconds){
|
||||||
|
_Sleep(seconds * 1000);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "hci_dump.h"
|
#include "hci_dump.h"
|
||||||
#include "btstack_chipset_bcm.h"
|
#include "btstack_chipset_bcm.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user