diff options
Diffstat (limited to 'pyecsca/codegen/hal/xmega')
| -rw-r--r-- | pyecsca/codegen/hal/xmega/xmega_hal.c | 4 | ||||
| -rw-r--r-- | pyecsca/codegen/hal/xmega/xmega_hal.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/pyecsca/codegen/hal/xmega/xmega_hal.c b/pyecsca/codegen/hal/xmega/xmega_hal.c index c9fc12a..52efe88 100644 --- a/pyecsca/codegen/hal/xmega/xmega_hal.c +++ b/pyecsca/codegen/hal/xmega/xmega_hal.c @@ -34,9 +34,7 @@ void platform_init(void) //Turn off other sources besides external OSC.CTRL = OSC_XOSCEN_bm; - - #if PLATFORM == CW303 + PORTA.DIRSET = PIN5_bm | PIN6_bm; PORTA.OUTSET = PIN5_bm | PIN6_bm; - #endif }
\ No newline at end of file diff --git a/pyecsca/codegen/hal/xmega/xmega_hal.h b/pyecsca/codegen/hal/xmega/xmega_hal.h index 1647824..cb53bb7 100644 --- a/pyecsca/codegen/hal/xmega/xmega_hal.h +++ b/pyecsca/codegen/hal/xmega/xmega_hal.h @@ -32,10 +32,8 @@ #define getch input_ch_0 #define flush() -#if PLATFORM == CW303 #define led_error(a) if (a) {PORTA.OUTCLR = PIN6_bm;} else {PORTA.OUTSET = PIN6_bm;} #define led_ok(a) if (a) {PORTA.OUTCLR = PIN5_bm;} else {PORTA.OUTSET = PIN5_bm;} -#endif void HW_AES128_Init(void); void HW_AES128_LoadKey(uint8_t * key); |
