mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add misc defs
This commit is contained in:
parent
167ba7d9eb
commit
e578633449
11
src/mdefs.h
Normal file
11
src/mdefs.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef ALWAYS_INLINE
|
||||
#define ALWAYS_INLINE inline __attribute__((always_inline))
|
||||
#endif
|
||||
|
||||
#ifndef BREAK
|
||||
#define BREAK() __asm__ volatile ("BKPT")
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_OPT
|
||||
#define DISABLE_OPT __attribute__((optimize("O0")))
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user