diff options
| author | J08nY | 2020-03-09 12:44:03 +0100 |
|---|---|---|
| committer | J08nY | 2020-03-09 12:44:03 +0100 |
| commit | a7d3589c4ba3551ab614dfc9c931c5998fbf7fac (patch) | |
| tree | 7f09b68b16b461ee6fd47d366dfc3d8444cf513e /pyecsca/codegen/hal | |
| parent | 0fde32d49ca8bcba19a370125be99ad0c7572009 (diff) | |
| download | pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.tar.gz pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.tar.zst pyecsca-codegen-a7d3589c4ba3551ab614dfc9c931c5998fbf7fac.zip | |
Add inversion to config, change scalar mult command.
Diffstat (limited to 'pyecsca/codegen/hal')
| -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_ |
