/********************************************************************* PicoTCP. Copyright (c) 2012-2015 Altran Intelligent Systems. Some rights reserved. See LICENSE and COPYING for usage. *********************************************************************/ #ifndef _INCLUDE_PICO_LPC #define _INCLUDE_PICO_LPC #include #include #include #include "pico_constants.h" extern pico_time msp430_time_s(void); extern pico_time msp430_time_ms(void); extern void *malloc(size_t); extern void free(void *); #define PICO_TIME() msp430_time_s() #define PICO_TIME_MS() msp430_time_ms() #define PICO_IDLE() do {} while(0) #define pico_free(x) free(x) static inline void *pico_zalloc(size_t size) { void *ptr = malloc(size); if(ptr) memset(ptr, 0u, size); return ptr; } #define dbg(...) #endif