diff options
Diffstat (limited to 'pyecsca/codegen/hal/hal.h')
| -rw-r--r-- | pyecsca/codegen/hal/hal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pyecsca/codegen/hal/hal.h b/pyecsca/codegen/hal/hal.h index fc7fc37..51f9130 100644 --- a/pyecsca/codegen/hal/hal.h +++ b/pyecsca/codegen/hal/hal.h @@ -41,4 +41,16 @@ void platform_init(void); #error "Unsupported HAL Type" #endif +#define NOP() __asm__ __volatile__ ("nop"); +#define _2(a) a;a +#define NOP_2() _2(NOP()) +#define NOP_4() _2(_2(NOP())) +#define NOP_8() _2(_2(_2(NOP()))) +#define NOP_16() _2(_2(_2(_2(NOP())))) +#define NOP_32() _2(_2(_2(_2(_2(NOP()))))) +#define NOP_64() _2(_2(_2(_2(_2(_2(NOP())))))) +#define NOP_128() _2(_2(_2(_2(_2(_2(_2(NOP()))))))) +#define NOP_256() _2(_2(_2(_2(_2(_2(_2(_2(NOP())))))))) +#define NOP_512() _2(_2(_2(_2(_2(_2(_2(_2(_2(NOP()))))))))) + #endif //HAL_H_ |
