diff options
| author | J08nY | 2020-02-18 18:04:59 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-18 18:04:59 +0100 |
| commit | f04c640c05e9ffe894f67194832623e28a8000f5 (patch) | |
| tree | 192683de3385305c0091607214d9396555add3c9 /pyecsca/codegen/hal/host | |
| parent | 29326d606cc073a0f4e62b65540998f62f242445 (diff) | |
| download | pyecsca-codegen-f04c640c05e9ffe894f67194832623e28a8000f5.tar.gz pyecsca-codegen-f04c640c05e9ffe894f67194832623e28a8000f5.tar.zst pyecsca-codegen-f04c640c05e9ffe894f67194832623e28a8000f5.zip | |
Rework client.
Diffstat (limited to 'pyecsca/codegen/hal/host')
| -rw-r--r-- | pyecsca/codegen/hal/host/host_hal.h | 1 | ||||
| -rw-r--r-- | pyecsca/codegen/hal/host/uart.c | 4 | ||||
| -rw-r--r-- | pyecsca/codegen/hal/host/uart.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/pyecsca/codegen/hal/host/host_hal.h b/pyecsca/codegen/hal/host/host_hal.h index b78172c..26d8f4d 100644 --- a/pyecsca/codegen/hal/host/host_hal.h +++ b/pyecsca/codegen/hal/host/host_hal.h @@ -10,5 +10,6 @@ #define init_uart init_uart0 #define putch output_ch_0 #define getch input_ch_0 +#define flush flush_ch_0 #endif //HOST_HAL_H_ diff --git a/pyecsca/codegen/hal/host/uart.c b/pyecsca/codegen/hal/host/uart.c index 0410462..1f8d947 100644 --- a/pyecsca/codegen/hal/host/uart.c +++ b/pyecsca/codegen/hal/host/uart.c @@ -4,4 +4,6 @@ void init_uart0(void) {} int input_ch_0(void) { return getchar(); } -void output_ch_0(char data) { putchar(data); }
\ No newline at end of file +void output_ch_0(char data) { putchar(data); } + +void flush_ch_0(void) { fflush(stdout); }
\ No newline at end of file diff --git a/pyecsca/codegen/hal/host/uart.h b/pyecsca/codegen/hal/host/uart.h index ffbc964..e65bfff 100644 --- a/pyecsca/codegen/hal/host/uart.h +++ b/pyecsca/codegen/hal/host/uart.h @@ -10,4 +10,6 @@ int input_ch_0(void); void output_ch_0(char data); +void flush_ch_0(void); + #endif //UART_H_
\ No newline at end of file |
