Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
uarm_lib.hpp
1
#ifndef __UARM_LIB_HPP
2
#define __UARM_LIB_HPP
3
4
#include "uarm_types.hpp"
5
6
// TODO: Make type safe memcpy/memset?
7
#ifdef GTEST
8
#include "assert.h"
9
#include "stdlib.h"
10
11
#define ASSERT(cond, msg) \
12
if (!(cond)) \
13
assert(0 && (msg))
14
#define MALLOC(size) malloc(size)
15
#define FREE(ptr) free(ptr)
16
#else
17
#include "FreeRTOS.h"
18
#include "error_handler.h"
19
20
#define ASSERT(cond, msg) \
21
if (!(cond)) \
22
error_handler((msg))
23
#define MALLOC(size) pvPortMalloc(size)
24
#define FREE(ptr) vPortFree(ptr)
25
#endif
26
27
#endif
Core
Src
Lib
uarm_lib.hpp
Generated by
1.14.0