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.

pull/1092/head
Steven Cooreman 2015-05-05 15:35:10 -05:00
parent e06fc12165
commit 8fea0fdf8d
2 changed files with 10 additions and 0 deletions

View File

@ -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"

View File

@ -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"