mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 05:48:08 +03:00
31c31db479
* Add new IrdaApp (half ready), add ButtonMenu * Fix NEC's extension * clang-format * Fix leak * Add submenu optional header * IRDA: add Edit button * clang-format * IrdaApp: Fix scene flow * Add IRDA NEC extended protocol * IRDA: Add address/command length Co-authored-by: SG <who.just.the.doctor@gmail.com>
27 lines
448 B
C
27 lines
448 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "check.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// define for test case "link against furi memmgr"
|
|
#define FURI_MEMMGR_GUARD 1
|
|
|
|
size_t memmgr_get_free_heap(void);
|
|
size_t memmgr_get_minimum_free_heap(void);
|
|
|
|
inline static void* furi_alloc(size_t size) {
|
|
void* p = malloc(size);
|
|
furi_check(p);
|
|
return memset(p, 0, size);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|