mirror of https://github.com/ARMmbed/mbed-os.git
RAM optimizations
Trying to save RAM wherever possible for Ublox C027 platformpull/4119/head
parent
f37f265ed5
commit
ae7fd61d65
|
@ -605,7 +605,11 @@ void ppp_print_string(const u_char *p, int len, void (*printer) (void *, const c
|
||||||
* ppp_logit - does the hard work for fatal et al.
|
* ppp_logit - does the hard work for fatal et al.
|
||||||
*/
|
*/
|
||||||
static void ppp_logit(int level, const char *fmt, va_list args) {
|
static void ppp_logit(int level, const char *fmt, va_list args) {
|
||||||
|
#ifdef PPP_LOGIT_BUFSIZE
|
||||||
|
char buf[PPP_LOGIT_BUFSIZE];
|
||||||
|
#else
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
#endif
|
||||||
|
|
||||||
ppp_vslprintf(buf, sizeof(buf), fmt, args);
|
ppp_vslprintf(buf, sizeof(buf), fmt, args);
|
||||||
ppp_log_write(level, buf);
|
ppp_log_write(level, buf);
|
||||||
|
|
|
@ -265,6 +265,7 @@
|
||||||
// Save RAM
|
// Save RAM
|
||||||
#define PAP_SUPPORT 0
|
#define PAP_SUPPORT 0
|
||||||
#define VJ_SUPPORT 0
|
#define VJ_SUPPORT 0
|
||||||
|
#define PPP_LOGIT_BUFSIZE 512
|
||||||
|
|
||||||
//Hate the config hassle.
|
//Hate the config hassle.
|
||||||
//#define LWIP_USE_EXTERNAL_MBEDTLS 1
|
//#define LWIP_USE_EXTERNAL_MBEDTLS 1
|
||||||
|
@ -288,6 +289,9 @@
|
||||||
#define LWIP_NETIF_STATUS_CALLBACK 1
|
#define LWIP_NETIF_STATUS_CALLBACK 1
|
||||||
#define LWIP_NETIF_LINK_CALLBACK 1
|
#define LWIP_NETIF_LINK_CALLBACK 1
|
||||||
|
|
||||||
|
#define DNS_TABLE_SIZE 2
|
||||||
|
#define DNS_MAX_NAME_LENGTH 128
|
||||||
|
|
||||||
#include <lwip/arch.h>
|
#include <lwip/arch.h>
|
||||||
#include "lwip_random.h"
|
#include "lwip_random.h"
|
||||||
#include "lwip_tcp_isn.h"
|
#include "lwip_tcp_isn.h"
|
||||||
|
|
Loading…
Reference in New Issue