global: add synchronisation barrier commands

This commit is contained in:
King Kévin 2020-11-27 16:38:32 +01:00
parent 06de8d0be9
commit 4fcfd29d2b
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@
/** enable debugging functionalities */
#define DEBUG true
/** Data Synchronization Barrier, ensure all data is written */
#define __DSB() __asm__("dsb")
/** Instruction Synchronization Barrier, ensure all instruction are run */
#define __ISB() __asm__("isb")
/** get the length of an array */
#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
/** concatenate 2 arguments */