diff --git a/global.h b/global.h index 9a6d4d5..40c22cc 100644 --- a/global.h +++ b/global.h @@ -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 */