Skip to content

Commit 8d032a8

Browse files
committed
add min() def
1 parent 9cb35bc commit 8d032a8

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.vscode/c_cpp_properties.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [
9+
"_DEBUG",
10+
"UNICODE",
11+
"_UNICODE"
12+
],
13+
"windowsSdkVersion": "10.0.22000.0",
14+
"compilerPath": "cl.exe",
15+
"cStandard": "c17",
16+
"cppStandard": "c++17",
17+
"intelliSenseMode": "windows-msvc-x64"
18+
}
19+
],
20+
"version": 4
21+
}

src/util/inv_mpu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
#define get_ms arduino_get_clock_ms
4747
#define log_i _MLPrintLog
4848
#define log_e _MLPrintLog
49+
#define reg_int_cb(void (*cb)(void), unsigned char port, unsigned char pin)
50+
#define labs( x)
51+
#define fabsf( x)
52+
#define min( a, b) arduino_min( a,b)
53+
54+
4955
static inline int reg_int_cb(struct int_param_s *int_param)
5056
{
5157
return 0;

0 commit comments

Comments
 (0)