mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 06:02:43 +00:00
try to work around missing STDOUT_FILENO on IAR
This commit is contained in:
parent
ceea31999e
commit
86faba9c68
@ -17,6 +17,15 @@
|
|||||||
#include "btstack_memory.h"
|
#include "btstack_memory.h"
|
||||||
#include "remote_device_db.h"
|
#include "remote_device_db.h"
|
||||||
|
|
||||||
|
// STDOUT_FILENO and STDERR_FILENO are defined by <unistd.h> with GCC
|
||||||
|
// (this is a hack for IAR)
|
||||||
|
#ifndef STDOUT_FILENO
|
||||||
|
#define STDERR_FILENO 1
|
||||||
|
#endif
|
||||||
|
#ifndef STDERR_FILENO
|
||||||
|
#define STDERR_FILENO 2
|
||||||
|
#endif
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
// LED2 on PA5
|
// LED2 on PA5
|
||||||
// Debug: USART2, TX on PA2
|
// Debug: USART2, TX on PA2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user