diff options
| author | J08nY | 2020-02-27 13:38:47 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-27 13:38:47 +0100 |
| commit | 4eafe2d49fc7406861609c5af12b850741bbe5a0 (patch) | |
| tree | 49355d5cce44be8bd100fa8260b3b488f15be4a5 /pyecsca/codegen/hal/xmega | |
| parent | a071822d9966ac150e7ed3d4efffbf3feaa500f5 (diff) | |
| download | pyecsca-codegen-4eafe2d49fc7406861609c5af12b850741bbe5a0.tar.gz pyecsca-codegen-4eafe2d49fc7406861609c5af12b850741bbe5a0.tar.zst pyecsca-codegen-4eafe2d49fc7406861609c5af12b850741bbe5a0.zip | |
Proper LED thingies.
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); |
