aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hal
diff options
context:
space:
mode:
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);