mirror of https://github.com/ARMmbed/mbed-os.git
redefine OPEN_MAX from sys_limits for ZG and HG because they are RAM-limited parts, and in doing so, we save about 200 bytes of RAM.
parent
e06fc12165
commit
8fea0fdf8d
|
@ -50,6 +50,11 @@
|
|||
|
||||
#define DEVICE_LOWPOWERTIMER 1
|
||||
|
||||
// Redefine OPEN_MAX from sys_limits.h to save on RAM.
|
||||
// Effect: maximum amount of file handlers = OPEN_MAX
|
||||
// This is not going to have an impact, since this is a RAM-limited part anyway.
|
||||
#define OPEN_MAX 24
|
||||
|
||||
#include "objects.h"
|
||||
#include "Modules.h"
|
||||
#include "device_peripherals.h"
|
||||
|
|
|
@ -50,6 +50,11 @@
|
|||
|
||||
#define DEVICE_LOWPOWERTIMER 1
|
||||
|
||||
// Redefine OPEN_MAX from sys_limits.h to save on RAM.
|
||||
// Effect: maximum amount of file handlers = OPEN_MAX
|
||||
// This is not going to have an impact, since this is a RAM-limited part anyway.
|
||||
#define OPEN_MAX 8
|
||||
|
||||
#include "objects.h"
|
||||
#include "Modules.h"
|
||||
#include "device_peripherals.h"
|
||||
|
|
Loading…
Reference in New Issue