aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hal
diff options
context:
space:
mode:
authorJ08nY2019-11-26 20:37:19 +0100
committerJ08nY2019-11-26 20:37:19 +0100
commitbb00fee9702155586e674b9d6a3b838bd54baac2 (patch)
treecc35efecb92ae20dbab88694737a6b7d53a62782 /pyecsca/codegen/hal
parent6784477dfc8f34f8d1a262517fe83ae70a59b325 (diff)
downloadpyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.tar.gz
pyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.tar.zst
pyecsca-codegen-bb00fee9702155586e674b9d6a3b838bd54baac2.zip
Add ASN.1 parsing and more utility functions, + commands sketch.
Diffstat (limited to 'pyecsca/codegen/hal')
-rw-r--r--pyecsca/codegen/hal/host/uart.c2
-rw-r--r--pyecsca/codegen/hal/host/uart.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/codegen/hal/host/uart.c b/pyecsca/codegen/hal/host/uart.c
index 3931d6d..0410462 100644
--- a/pyecsca/codegen/hal/host/uart.c
+++ b/pyecsca/codegen/hal/host/uart.c
@@ -2,6 +2,6 @@
void init_uart0(void) {}
-char input_ch_0(void) { return getchar(); }
+int input_ch_0(void) { return getchar(); }
void output_ch_0(char data) { putchar(data); } \ No newline at end of file
diff --git a/pyecsca/codegen/hal/host/uart.h b/pyecsca/codegen/hal/host/uart.h
index d6063bc..ffbc964 100644
--- a/pyecsca/codegen/hal/host/uart.h
+++ b/pyecsca/codegen/hal/host/uart.h
@@ -6,7 +6,7 @@
void init_uart0(void);
-char input_ch_0(void);
+int input_ch_0(void);
void output_ch_0(char data);