Skip to content

Commit

Permalink
esp8266: extra cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vincent committed Nov 2, 2014
1 parent 6a1d44d commit e38bcdd
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions include/arch/pico_esp8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,25 @@
#include "pico_constants.h"


#define dbg(...)
#define pico_free vPortFree
#define pico_zalloc pvPortCalloc
/* -------------- DEBUG ------------- */

//#define dbg(...)
#define dbg os_printf


/* -------------- MEMORY ------------- */

#define pico_free os_free

static inline void *pico_zalloc(size_t size)
{
void *ptr = (void *)os_malloc(size);
if(ptr)
memset(ptr, 0u, size);
return ptr;
}

/* -------------- TIME ------------- */

extern volatile uint32_t esp_tick;

Expand Down

0 comments on commit e38bcdd

Please sign in to comment.